diff --git a/tests/Etc/2019_08_08_000001_add_custom_column.php b/tests/Etc/2019_08_08_000001_add_custom_column.php index 24ffbbd5..5b5ac3f4 100644 --- a/tests/Etc/2019_08_08_000001_add_custom_column.php +++ b/tests/Etc/2019_08_08_000001_add_custom_column.php @@ -23,4 +23,4 @@ class AddCustomColumn extends Migration public function down() { } -} \ No newline at end of file +} diff --git a/tests/TenantStorageTest.php b/tests/TenantStorageTest.php index 12e6c913..f5f2dcee 100644 --- a/tests/TenantStorageTest.php +++ b/tests/TenantStorageTest.php @@ -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); } }