mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:54:05 +00:00
Apply fixes from StyleCI (#80)
This commit is contained in:
parent
bd6583b6af
commit
eceacd9422
25 changed files with 83 additions and 70 deletions
|
|
@ -66,7 +66,7 @@ class TenantManagerTest extends TestCase
|
|||
public function getTenantById_works()
|
||||
{
|
||||
$tenant = tenant()->create('foo.localhost');
|
||||
|
||||
|
||||
$this->assertSame($tenant, tenancy()->getTenantById($tenant['uuid']));
|
||||
}
|
||||
|
||||
|
|
@ -120,7 +120,7 @@ class TenantManagerTest extends TestCase
|
|||
|
||||
tenant()->create('foo.localhost');
|
||||
tenancy()->init('foo.localhost');
|
||||
|
||||
|
||||
$this->assertNotSame($originals['databaseName'], DB::connection()->getDatabaseName());
|
||||
$this->assertNotSame($originals['storage_path'], storage_path());
|
||||
$this->assertNotSame($originals['storage_root'], Storage::disk('local')->getAdapter()->getPathPrefix());
|
||||
|
|
@ -146,7 +146,7 @@ class TenantManagerTest extends TestCase
|
|||
|
||||
tenant()->create('foo.localhost');
|
||||
tenancy()->init('foo.localhost');
|
||||
|
||||
|
||||
$this->assertNotSame($originals['databaseName'], DB::connection()->getDatabaseName());
|
||||
$this->assertNotSame($originals['storage_path'], storage_path());
|
||||
$this->assertNotSame($originals['storage_root'], Storage::disk('local')->getAdapter()->getPathPrefix());
|
||||
|
|
@ -182,7 +182,7 @@ class TenantManagerTest extends TestCase
|
|||
$tenant = tenant()->create('foo.localhost');
|
||||
tenant()->delete($tenant['uuid']);
|
||||
$this->assertSame([], tenancy()->all()->toArray());
|
||||
|
||||
|
||||
$tenant = tenant()->create('foo.localhost');
|
||||
$this->assertSame([$tenant], tenancy()->all()->toArray());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue