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

uuid -> id (references in code)

This commit is contained in:
Samuel Štancl 2019-09-15 22:52:31 +02:00
parent a7bb709bd4
commit 79f912384b
17 changed files with 46 additions and 45 deletions

View file

@ -49,7 +49,7 @@ class CommandsTest extends TestCase
{
$tenant = tenant()->create('test.localhost');
Artisan::call('tenants:migrate', [
'--tenants' => [$tenant['uuid']],
'--tenants' => [$tenant['id']],
]);
$this->assertFalse(Schema::hasTable('users'));
@ -106,11 +106,11 @@ class CommandsTest extends TestCase
/** @test */
public function run_commands_works()
{
$uuid = tenant()->create('run.localhost')['uuid'];
$id = tenant()->create('run.localhost')['id'];
Artisan::call('tenants:migrate', ['--tenants' => $uuid]);
Artisan::call('tenants:migrate', ['--tenants' => $id]);
$this->artisan("tenants:run foo --tenants=$uuid --argument='a=foo' --option='b=bar' --option='c=xyz'")
$this->artisan("tenants:run foo --tenants=$id --argument='a=foo' --option='b=bar' --option='c=xyz'")
->expectsOutput("User's name is Test command")
->expectsOutput('foo')
->expectsOutput('xyz');