1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 11:44:04 +00:00
This commit is contained in:
Samuel Štancl 2019-02-27 17:30:25 +01:00
parent f9a819215f
commit 2ebf4d516f

View file

@ -43,16 +43,6 @@ class CommandsTest extends TestCase
/** @test */ /** @test */
public function migrate_command_works_with_tenants_option() public function migrate_command_works_with_tenants_option()
{ {
// connection is sqlite
dump(Schema::getConnection()->getName());
tenancy()->init('localhost'); // reconnect the DB
// connection should be tenant at this point. is still sqlite
dump(Schema::getConnection()->getName());
// if you remove line 47, connection will be tenant at this point
dd('stop');
$tenant = tenant()->create('test.localhost'); $tenant = tenant()->create('test.localhost');
Artisan::call('tenants:migrate', [ Artisan::call('tenants:migrate', [
'--tenants' => [$tenant['uuid']] '--tenants' => [$tenant['uuid']]