mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 07:54:03 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
a6102be1a0
commit
075dc12e2f
1 changed files with 2 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ class CachedResolverTest extends TestCase
|
||||||
// cache record is set
|
// cache record is set
|
||||||
$this->assertSame('xyz', tenancy()->find($tenant->id)->get('foo'));
|
$this->assertSame('xyz', tenancy()->find($tenant->id)->get('foo'));
|
||||||
$this->assertSame('xyz', Cache::get('_tenancy_id_to_data:' . $tenant->id)['foo']);
|
$this->assertSame('xyz', Cache::get('_tenancy_id_to_data:' . $tenant->id)['foo']);
|
||||||
|
|
||||||
// cache record is invalidated
|
// cache record is invalidated
|
||||||
$tenant->foo = 'abc';
|
$tenant->foo = 'abc';
|
||||||
$tenant->save();
|
$tenant->save();
|
||||||
|
|
@ -117,7 +117,7 @@ class CachedResolverTest extends TestCase
|
||||||
// cache record is invalidated
|
// cache record is invalidated
|
||||||
$tenant->addDomains(['bar.localhost'])->save();
|
$tenant->addDomains(['bar.localhost'])->save();
|
||||||
$this->assertEquals(null, Cache::get('_tenancy_id_to_domains:' . $tenant->id));
|
$this->assertEquals(null, Cache::get('_tenancy_id_to_domains:' . $tenant->id));
|
||||||
|
|
||||||
$this->assertEquals(['foo.localhost', 'bar.localhost'], tenancy()->find($tenant->id)->domains);
|
$this->assertEquals(['foo.localhost', 'bar.localhost'], tenancy()->find($tenant->id)->domains);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue