1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 19:34:04 +00:00

Merge remote-tracking branch 'origin/3.x'

This commit is contained in:
Samuel Štancl 2024-02-10 23:34:47 +01:00
commit 7c29764d81
10 changed files with 165 additions and 4 deletions

View file

@ -295,11 +295,13 @@ test('migrate fresh command works', function () {
test('run command with array of tenants works', function () {
$tenantId1 = Tenant::create()->getTenantKey();
$tenantId2 = Tenant::create()->getTenantKey();
$tenantId3 = Tenant::create()->getTenantKey();
Artisan::call('tenants:migrate-fresh');
pest()->artisan("tenants:run --tenants=$tenantId1 --tenants=$tenantId2 'foo foo --b=bar --c=xyz'")
->expectsOutputToContain('Tenant: ' . $tenantId1)
->expectsOutputToContain('Tenant: ' . $tenantId2)
->doesntExpectOutput('Tenant: ' . $tenantId3)
->assertExitCode(0);
});