From d42e59b2a7d463153b1b5526930fee3dc974c983 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Thu, 24 Nov 2022 17:47:49 +0500 Subject: [PATCH] add comment --- tests/ManualModeTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/ManualModeTest.php b/tests/ManualModeTest.php index 17a8dfe8..23951a07 100644 --- a/tests/ManualModeTest.php +++ b/tests/ManualModeTest.php @@ -29,6 +29,8 @@ test('manual tenancy initialization works', function () { pest()->assertArrayNotHasKey('tenant', config('database.connections')); tenancy()->initialize($tenant); + + // Use the `tenant` connection to make sure the connection is useable and `tenant` connection is created inside the `db` class createUsersTable(); expect(app('db')->getDefaultConnection())->toBe('tenant');