mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 02:54:06 +00:00
Improve PHPUnit assertions
This commit is contained in:
parent
126afcd0dd
commit
ce0dee4343
5 changed files with 12 additions and 12 deletions
|
|
@ -132,7 +132,7 @@ class BootstrapperTest extends TestCase
|
|||
$this->assertSame('bar', Redis::get('foo'));
|
||||
|
||||
tenancy()->initialize($tenant2);
|
||||
$this->assertSame(null, Redis::get('foo'));
|
||||
$this->assertNull(Redis::get('foo'));
|
||||
Redis::set('foo', 'xyz');
|
||||
Redis::set('abc', 'def');
|
||||
$this->assertSame('xyz', Redis::get('foo'));
|
||||
|
|
@ -140,12 +140,12 @@ class BootstrapperTest extends TestCase
|
|||
|
||||
tenancy()->initialize($tenant1);
|
||||
$this->assertSame('bar', Redis::get('foo'));
|
||||
$this->assertSame(null, Redis::get('abc'));
|
||||
$this->assertNull(Redis::get('abc'));
|
||||
|
||||
$tenant3 = Tenant::create();
|
||||
tenancy()->initialize($tenant3);
|
||||
$this->assertSame(null, Redis::get('foo'));
|
||||
$this->assertSame(null, Redis::get('abc'));
|
||||
$this->assertNull(Redis::get('foo'));
|
||||
$this->assertNull(Redis::get('abc'));
|
||||
}
|
||||
|
||||
/** @test */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue