mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 09:04:03 +00:00
Fix assertion for domain or subdomain ID exception
The test asserted that NotASubdomainException was thrown when visiting localhost/central-route. Because this exception is only thrown after the host is identified as a subdomain, while calling `makeSubdomain()`, NotASubdomainException is not thrown in this case anymore.
This commit is contained in:
parent
4287f2a8a0
commit
e37d4b67bd
1 changed files with 1 additions and 1 deletions
|
|
@ -300,7 +300,7 @@ test('using different default route modes works with global domain identificatio
|
||||||
$exception = match ($middleware) {
|
$exception = match ($middleware) {
|
||||||
InitializeTenancyByDomain::class => TenantCouldNotBeIdentifiedOnDomainException::class,
|
InitializeTenancyByDomain::class => TenantCouldNotBeIdentifiedOnDomainException::class,
|
||||||
InitializeTenancyBySubdomain::class => NotASubdomainException::class,
|
InitializeTenancyBySubdomain::class => NotASubdomainException::class,
|
||||||
InitializeTenancyByDomainOrSubdomain::class => NotASubdomainException::class,
|
InitializeTenancyByDomainOrSubdomain::class => TenantCouldNotBeIdentifiedOnDomainException::class,
|
||||||
};
|
};
|
||||||
|
|
||||||
expect(fn () => $this->withoutExceptionHandling()->get('http://localhost/central-route'))->toThrow($exception);
|
expect(fn () => $this->withoutExceptionHandling()->get('http://localhost/central-route'))->toThrow($exception);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue