mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:44:04 +00:00
wip
This commit is contained in:
parent
f9a819215f
commit
2ebf4d516f
1 changed files with 0 additions and 10 deletions
|
|
@ -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']]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue