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

Test: Remove defaulting to 'default' DB connection

This commit is contained in:
Samuel Štancl 2019-08-18 23:30:40 +02:00
parent e41a469510
commit 8456280ac4

View file

@ -147,9 +147,5 @@ class TenantStorageTest extends TestCase
{ {
config(['tenancy.storage.db.connection' => 'foo']); config(['tenancy.storage.db.connection' => 'foo']);
$this->assertSame('foo', (new Tenant)->getConnectionName()); $this->assertSame('foo', (new Tenant)->getConnectionName());
config(['tenancy.storage.db.connection' => null]);
config(['database.default' => 'foobar']);
$this->assertSame('foobar', (new Tenant)->getConnectionName());
} }
} }