feat: separate tenant domain and base path, update related models, requests, and tests
This commit is contained in:
@@ -73,4 +73,14 @@ class TenantDomainNormalizerTest extends TestCase
|
||||
'/sonder-shop/productos',
|
||||
));
|
||||
}
|
||||
|
||||
public function test_it_builds_base_path_candidates_from_the_longest_path_to_root(): void
|
||||
{
|
||||
$this->assertSame([
|
||||
'/desfile/productos/123',
|
||||
'/desfile/productos',
|
||||
'/desfile',
|
||||
'/',
|
||||
], TenantDomainNormalizer::basePathCandidates('/desfile/productos/123?ref=home'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user