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

Fix Tenant DB manager tests

This commit is contained in:
Samuel Štancl 2019-09-17 17:59:40 +02:00
parent 7e645a3312
commit 5e9b421aa6
5 changed files with 49 additions and 96 deletions

View file

@ -37,11 +37,11 @@ class TenantManagerTest extends TestCase
{
$tenant = Tenant::new()->withDomains(['foo.localhost'])->save();
$this->assertNotSame($tenant, tenancy()->tenant);
$this->assertNotSame($tenant, tenancy()->getTenant());
tenancy()->initById($tenant['id']);
$this->assertSame($tenant, tenancy()->tenant);
$this->assertSame($tenant, tenancy()->getTenant());
}
/** @test */