mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:24:04 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
800e8d5a56
commit
f639909eb7
2 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ abstract class IdentificationMiddleware
|
||||||
} else {
|
} else {
|
||||||
$this->tenancy->initialize(
|
$this->tenancy->initialize(
|
||||||
$this->resolver->resolve(...$resolverArguments)
|
$this->resolver->resolve(...$resolverArguments)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (TenantCouldNotBeIdentifiedException $e) {
|
} catch (TenantCouldNotBeIdentifiedException $e) {
|
||||||
$onFail = static::$onFail ?? function ($e) {
|
$onFail = static::$onFail ?? function ($e) {
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ class CachedTenantResolverTest extends TestCase
|
||||||
// create cache
|
// create cache
|
||||||
$this->get('http://acme.localhost/foo')
|
$this->get('http://acme.localhost/foo')
|
||||||
->assertSee('bar');
|
->assertSee('bar');
|
||||||
|
|
||||||
$this->mock(CachedTenantResolver::class, function ($mock) {
|
$this->mock(CachedTenantResolver::class, function ($mock) {
|
||||||
return $mock->shouldReceive('resolve')->once(); // only once
|
return $mock->shouldReceive('resolve')->once(); // only once
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue