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

Apply fixes from StyleCI

This commit is contained in:
stancl 2020-03-14 15:49:33 +00:00 committed by StyleCI Bot
parent a6102be1a0
commit 075dc12e2f

View file

@ -95,7 +95,7 @@ class CachedResolverTest extends TestCase
// cache record is set
$this->assertSame('xyz', tenancy()->find($tenant->id)->get('foo'));
$this->assertSame('xyz', Cache::get('_tenancy_id_to_data:' . $tenant->id)['foo']);
// cache record is invalidated
$tenant->foo = 'abc';
$tenant->save();
@ -117,7 +117,7 @@ class CachedResolverTest extends TestCase
// cache record is invalidated
$tenant->addDomains(['bar.localhost'])->save();
$this->assertEquals(null, Cache::get('_tenancy_id_to_domains:' . $tenant->id));
$this->assertEquals(['foo.localhost', 'bar.localhost'], tenancy()->find($tenant->id)->domains);
}