1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 22:24:03 +00:00
This commit is contained in:
Dylan Harbour 2020-11-04 15:35:37 +02:00
parent 9e2cb75351
commit 9f4dcbc40f

View file

@ -195,12 +195,11 @@ class CommandsTest extends TestCase
public function run_command_with_array_of_tenants_works()
{
$tenantId1 = Tenant::create()->getTenantKey();
$tenantId2= Tenant::create()->getTenantKey();
$tenantId2 = Tenant::create()->getTenantKey();
Artisan::call('tenants:migrate-fresh');
$this->artisan("tenants:run foo --tenants=$tenantId1 --tenants=$tenantId2 --argument='a=foo' --option='b=bar' --option='c=xyz'")
->expectsOutput("Tenant: " . $tenantId1)
->expectsOutput("Tenant: " . $tenantId2);
->expectsOutput('Tenant: ' . $tenantId1)
->expectsOutput('Tenant: ' . $tenantId2);
}
}