From a17727b4374b324b90a365e2cc388844cb9424ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 9 May 2020 04:53:33 +0200 Subject: [PATCH] Fix test exception_is_thrown_when_tenant_cannot_be_identified_by_path --- tests/v3/PathIdentificationTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/v3/PathIdentificationTest.php b/tests/v3/PathIdentificationTest.php index 9856cc26..cddc51f5 100644 --- a/tests/v3/PathIdentificationTest.php +++ b/tests/v3/PathIdentificationTest.php @@ -69,8 +69,11 @@ class PathIdentificationTest extends TestCase /** @test */ public function exception_is_thrown_when_tenant_cannot_be_identified_by_path() { - // todo the exception assertion doesn't work $this->expectException(TenantCouldNotBeIdentifiedByPathException::class); + + $this + ->withoutExceptionHandling() + ->get('/acme/foo/abc/xyz'); $this->assertFalse(tenancy()->initialized); }