mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 19:14:03 +00:00
Merge branch 'improve-run-command' of https://github.com/abrardev99/tenancy into improve-run-command
This commit is contained in:
commit
97b1f393e2
1 changed files with 4 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ test('run command with array of tenants works', function () {
|
||||||
->expectsOutput('Tenant: ' . $tenantId2);
|
->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();
|
$tenant = Tenant::create();
|
||||||
$id = $tenant->getTenantKey();
|
$id = $tenant->getTenantKey();
|
||||||
|
|
||||||
|
|
@ -192,6 +192,9 @@ test('run command works when sub command asks question and accepts argument', cl
|
||||||
->expectsOutput("Tenant: $id")
|
->expectsOutput("Tenant: $id")
|
||||||
->expectsOutput("User created: Abrar(email@localhost)");
|
->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
|
// Assert users table does not exist in the central context
|
||||||
expect(Schema::hasTable('users'))->toBeFalse();
|
expect(Schema::hasTable('users'))->toBeFalse();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue