1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 16:24:04 +00:00
This commit is contained in:
Samuel Štancl 2019-08-14 22:19:29 +02:00
commit 9ff77d2128
2 changed files with 4 additions and 2 deletions

View file

@ -103,6 +103,7 @@ class TenantManagerEventsTest extends TestCase
Tenancy::bootstrapping(function ($tenancy) use ($uuid) {
if ($tenancy->tenant['uuid'] === $uuid) {
$tenancy->database->useConnection('tenantabc');
return ['database'];
}
});
@ -133,4 +134,4 @@ class TenantManagerEventsTest extends TestCase
tenancy()->init('abc.localhost');
$this->assertSame('tenant', \DB::connection()->getConfig()['name']);
}
}
}