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

Apply fixes from StyleCI

This commit is contained in:
stancl 2019-08-02 17:53:11 +00:00 committed by StyleCI Bot
parent 2cf96423b0
commit a5437472ae
25 changed files with 83 additions and 70 deletions

View file

@ -19,16 +19,16 @@ class GlobalCacheTest extends TestCase
tenant()->create('foo.localhost');
tenancy()->init('foo.localhost');
$this->assertSame('bar', GlobalCache::get('foo'));
GlobalCache::put(['abc' => 'xyz'], 1);
cache(['def' => 'ghi'], 10);
$this->assertSame('ghi', cache('def'));
tenancy()->end();
$this->assertSame('xyz', GlobalCache::get('abc'));
$this->assertSame('bar', GlobalCache::get('foo'));
$this->assertSame(null, cache('def'));
tenant()->create('bar.localhost');
tenancy()->init('bar.localhost');
$this->assertSame('xyz', GlobalCache::get('abc'));
@ -40,4 +40,4 @@ class GlobalCacheTest extends TestCase
tenancy()->init('foo.localhost');
$this->assertSame('ghi', cache('def'));
}
}
}