diff --git a/src/Middleware/IdentificationMiddleware.php b/src/Middleware/IdentificationMiddleware.php index e4c3de2d..16056fea 100644 --- a/src/Middleware/IdentificationMiddleware.php +++ b/src/Middleware/IdentificationMiddleware.php @@ -39,7 +39,7 @@ abstract class IdentificationMiddleware } else { $this->tenancy->initialize( $this->resolver->resolve(...$resolverArguments) - ); + ); } } catch (TenantCouldNotBeIdentifiedException $e) { $onFail = static::$onFail ?? function ($e) { diff --git a/tests/CachedTenantResolverTest.php b/tests/CachedTenantResolverTest.php index 8d0e0ff2..98b8bf43 100644 --- a/tests/CachedTenantResolverTest.php +++ b/tests/CachedTenantResolverTest.php @@ -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 });