1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 14:34:04 +00:00
This commit is contained in:
Abrar Ahmad 2022-10-26 12:44:47 +05:00
parent e5cf5c0f82
commit 0a4dc59912

View file

@ -112,12 +112,12 @@ test('the tenant connection is fully removed', function () {
createUsersTable();
expect(array_keys(app('db')->getConnections()))->toBe(['central', 'tenant_host_connection', 'tenant']);
expect(array_keys(app('db')->getConnections()))->toBe(['central', 'tenant']);
pest()->assertArrayHasKey('tenant', config('database.connections'));
tenancy()->end();
expect(array_keys(app('db')->getConnections()))->toBe(['central', 'tenant_host_connection']);
expect(array_keys(app('db')->getConnections()))->toBe(['central']);
expect(config('database.connections.tenant'))->toBeNull();
});