mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:14:04 +00:00
Fix test exception_is_thrown_when_tenant_cannot_be_identified_by_path
This commit is contained in:
parent
aff52458f9
commit
a17727b437
1 changed files with 4 additions and 1 deletions
|
|
@ -69,8 +69,11 @@ class PathIdentificationTest extends TestCase
|
||||||
/** @test */
|
/** @test */
|
||||||
public function exception_is_thrown_when_tenant_cannot_be_identified_by_path()
|
public function exception_is_thrown_when_tenant_cannot_be_identified_by_path()
|
||||||
{
|
{
|
||||||
// todo the exception assertion doesn't work
|
|
||||||
$this->expectException(TenantCouldNotBeIdentifiedByPathException::class);
|
$this->expectException(TenantCouldNotBeIdentifiedByPathException::class);
|
||||||
|
|
||||||
|
$this
|
||||||
|
->withoutExceptionHandling()
|
||||||
|
->get('/acme/foo/abc/xyz');
|
||||||
|
|
||||||
$this->assertFalse(tenancy()->initialized);
|
$this->assertFalse(tenancy()->initialized);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue