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-05-22 10:34:35 +00:00 committed by StyleCI Bot
parent 800e8d5a56
commit f639909eb7
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ abstract class IdentificationMiddleware
} else {
$this->tenancy->initialize(
$this->resolver->resolve(...$resolverArguments)
);
);
}
} catch (TenantCouldNotBeIdentifiedException $e) {
$onFail = static::$onFail ?? function ($e) {

View file

@ -69,7 +69,7 @@ class CachedTenantResolverTest extends TestCase
// create cache
$this->get('http://acme.localhost/foo')
->assertSee('bar');
$this->mock(CachedTenantResolver::class, function ($mock) {
return $mock->shouldReceive('resolve')->once(); // only once
});