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:
parent
126afcd0dd
commit
ce0dee4343
5 changed files with 12 additions and 12 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue