From 1008db2d43aea8fef92261e813c5db224d8d8c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 15 May 2020 11:22:12 +0200 Subject: [PATCH] Fix cache test --- tests/GlobalCacheTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/GlobalCacheTest.php b/tests/GlobalCacheTest.php index edf92711..4542194c 100644 --- a/tests/GlobalCacheTest.php +++ b/tests/GlobalCacheTest.php @@ -10,6 +10,8 @@ use Stancl\Tenancy\Tests\Etc\Tenant; use Stancl\Tenancy\Listeners\BootstrapTenancy; use Stancl\Tenancy\Events\TenancyInitialized; use Stancl\Tenancy\Bootstrappers\CacheTenancyBootstrapper; +use Stancl\Tenancy\Events\TenancyEnded; +use Stancl\Tenancy\Listeners\RevertToCentralContext; use Stancl\Tenancy\Tests\TestCase; class GlobalCacheTest extends TestCase @@ -23,6 +25,7 @@ class GlobalCacheTest extends TestCase ]]); Event::listen(TenancyInitialized::class, BootstrapTenancy::class); + Event::listen(TenancyEnded::class, RevertToCentralContext::class); } /** @test */