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:
parent
8a25cf2010
commit
b2df92a865
2 changed files with 4 additions and 4 deletions
|
|
@ -23,4 +23,4 @@ class AddCustomColumn extends Migration
|
|||
public function down()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue