mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 22:24:03 +00:00
fix test
This commit is contained in:
parent
e5cf5c0f82
commit
0a4dc59912
1 changed files with 2 additions and 2 deletions
|
|
@ -112,12 +112,12 @@ test('the tenant connection is fully removed', function () {
|
||||||
|
|
||||||
createUsersTable();
|
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'));
|
pest()->assertArrayHasKey('tenant', config('database.connections'));
|
||||||
|
|
||||||
tenancy()->end();
|
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();
|
expect(config('database.connections.tenant'))->toBeNull();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue