diff --git a/tests/CommandsTest.php b/tests/CommandsTest.php index 3cae34f3..cd2eed9d 100644 --- a/tests/CommandsTest.php +++ b/tests/CommandsTest.php @@ -180,7 +180,7 @@ test('run command with array of tenants works', function () { ->expectsOutput('Tenant: ' . $tenantId2); }); -test('run command works when sub command asks question and accepts argument', closure: function () { +test('run command works when sub command asks question and accepts argument', function () { $tenant = Tenant::create(); $id = $tenant->getTenantKey(); @@ -192,6 +192,9 @@ test('run command works when sub command asks question and accepts argument', cl ->expectsOutput("Tenant: $id") ->expectsOutput("User created: Abrar(email@localhost)"); + // Assert we are in central context + expect(tenancy()->initialized)->toBeFalse(); + // Assert users table does not exist in the central context expect(Schema::hasTable('users'))->toBeFalse();