1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 19:24:02 +00:00

Apply fixes from StyleCI

This commit is contained in:
stancl 2019-09-04 14:41:23 +00:00 committed by StyleCI Bot
parent 8a25cf2010
commit b2df92a865
2 changed files with 4 additions and 4 deletions

View file

@ -23,4 +23,4 @@ class AddCustomColumn extends Migration
public function down()
{
}
}
}

View file

@ -187,15 +187,15 @@ class TenantStorageTest extends TestCase
config(['database.default' => 'sqlite']); // fix issue caused by loadMigrationsFrom
config(['tenancy.storage.db.custom_columns' => [
'foo'
'foo',
]]);
tenancy()->create('foo.localhost');
tenancy()->init('foo.localhost');
tenancy()->put(['foo' => 'bar', 'abc' => 'xyz']);
$this->assertSame(['bar', 'xyz'], tenancy()->get(['foo', 'abc']));
$this->assertSame('bar', \DB::connection('central')->table('tenants')->where('uuid', tenant('uuid'))->first()->foo);
}
}