1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 09:54:03 +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

@ -45,7 +45,7 @@ class AutomaticModeTest extends TestCase
tenancy()->end();
$this->assertSame(true, app('tenancy_ended'));
$this->assertTrue(app('tenancy_ended'));
}
/** @test */
@ -78,7 +78,7 @@ class AutomaticModeTest extends TestCase
tenancy()->initialize($tenant = Tenant::create());
tenancy()->central(function () {
$this->assertSame(null, tenant());
$this->assertNull(tenant());
});
$this->assertSame($tenant, tenant());