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:
parent
7e645a3312
commit
5e9b421aa6
5 changed files with 49 additions and 96 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue