1
0
Fork 0
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:
peter279k 2020-11-29 02:13:52 +08:00
parent 126afcd0dd
commit ce0dee4343
5 changed files with 12 additions and 12 deletions

View file

@ -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 */