1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 12:44:02 +00:00

Fix #25 better error handling

This commit is contained in:
Samuel Štancl 2019-02-13 16:26:00 +01:00
parent fa5334f83e
commit d2ec7f171d
2 changed files with 15 additions and 2 deletions

View file

@ -91,4 +91,11 @@ class TenantManagerTest extends TestCase
$this->assertSame($domain, tenant()->create($domain)['domain']);
}
/** @test */
public function find_by_domain_throws_an_exception_when_an_unused_domain_is_supplied()
{
$this->expectException(\Exception::class);
tenancy()->findByDomain('nonexistent.domain');
}
}