1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 14:34:04 +00:00

move a few lines [ci skip]

This commit is contained in:
Samuel Štancl 2019-02-13 18:21:48 +01:00
parent 08f6db4ffe
commit 88d4e67516

View file

@ -43,8 +43,8 @@ class CacheManagerTest extends TestCase
{ {
tenant()->create('foo.localhost'); tenant()->create('foo.localhost');
tenancy()->init('foo.localhost'); tenancy()->init('foo.localhost');
cache()->put('foo', 'bar', 1); cache()->put('foo', 'bar', 1);
$this->assertSame('bar', cache()->get('foo')); $this->assertSame('bar', cache()->get('foo'));
tenant()->create('bar.localhost'); tenant()->create('bar.localhost');
@ -53,7 +53,6 @@ class CacheManagerTest extends TestCase
$this->assertNotSame('bar', cache()->get('foo')); $this->assertNotSame('bar', cache()->get('foo'));
cache()->put('foo', 'xyz', 1); cache()->put('foo', 'xyz', 1);
$this->assertSame('xyz', cache()->get('foo')); $this->assertSame('xyz', cache()->get('foo'));
} }
@ -62,8 +61,8 @@ class CacheManagerTest extends TestCase
{ {
tenant()->create('foo.localhost'); tenant()->create('foo.localhost');
tenancy()->init('foo.localhost'); tenancy()->init('foo.localhost');
cache(['foo' => 'bar'], 1);
cache(['foo' => 'bar'], 1);
$this->assertSame('bar', cache('foo')); $this->assertSame('bar', cache('foo'));
tenant()->create('bar.localhost'); tenant()->create('bar.localhost');
@ -72,7 +71,6 @@ class CacheManagerTest extends TestCase
$this->assertNotSame('bar', cache('foo')); $this->assertNotSame('bar', cache('foo'));
cache(['foo' => 'xyz'], 1); cache(['foo' => 'xyz'], 1);
$this->assertSame('xyz', cache('foo')); $this->assertSame('xyz', cache('foo'));
} }
} }