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

Apply fixes from StyleCI

This commit is contained in:
stancl 2020-06-02 18:26:37 +00:00 committed by StyleCI Bot
parent 5713c854ce
commit e1c79bab11

View file

@ -40,14 +40,14 @@ class CachedTenantResolverTest extends TestCase
DB::enableQueryLog();
DomainTenantResolver::$shouldCache = false;
$this->assertTrue($tenant->is(app(DomainTenantResolver::class)->resolve('acme')));
DB::flushQueryLog();
$this->assertTrue($tenant->is(app(DomainTenantResolver::class)->resolve('acme')));
$this->assertNotEmpty(DB::getQueryLog()); // not empty
DomainTenantResolver::$shouldCache = true;
$this->assertTrue($tenant->is(app(DomainTenantResolver::class)->resolve('acme')));
DB::flushQueryLog();
$this->assertTrue($tenant->is(app(DomainTenantResolver::class)->resolve('acme')));