1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 20:14:04 +00:00

add comment

This commit is contained in:
Abrar Ahmad 2022-11-24 17:47:49 +05:00 committed by GitHub
parent fdb6e12fdd
commit d42e59b2a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,8 @@ test('manual tenancy initialization works', function () {
pest()->assertArrayNotHasKey('tenant', config('database.connections')); pest()->assertArrayNotHasKey('tenant', config('database.connections'));
tenancy()->initialize($tenant); tenancy()->initialize($tenant);
// Use the `tenant` connection to make sure the connection is useable and `tenant` connection is created inside the `db` class
createUsersTable(); createUsersTable();
expect(app('db')->getDefaultConnection())->toBe('tenant'); expect(app('db')->getDefaultConnection())->toBe('tenant');