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

Merge branch 'improve-run-command' of https://github.com/abrardev99/tenancy into improve-run-command

This commit is contained in:
Abrar Ahmad 2022-08-31 10:43:08 +05:00
commit 97b1f393e2

View file

@ -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();