From 66669934f91556802d89ef27c0f667ad0308cda7 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Fri, 31 Mar 2023 14:11:45 +0200 Subject: [PATCH] Reset static properties in afterEach --- tests/PrefixCacheBootstrapperTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/PrefixCacheBootstrapperTest.php b/tests/PrefixCacheBootstrapperTest.php index d17bafff..d9a0afb5 100644 --- a/tests/PrefixCacheBootstrapperTest.php +++ b/tests/PrefixCacheBootstrapperTest.php @@ -8,9 +8,9 @@ use Stancl\Tenancy\Events\TenancyEnded; use Stancl\Tenancy\Tests\Etc\CacheService; use Stancl\Tenancy\Events\TenancyInitialized; use Stancl\Tenancy\Listeners\BootstrapTenancy; -use Stancl\Tenancy\Tests\Etc\SpecificCacheStoreService; use Stancl\Tenancy\Listeners\RevertToCentralContext; use Stancl\Tenancy\CacheManager as TenancyCacheManager; +use Stancl\Tenancy\Tests\Etc\SpecificCacheStoreService; use Stancl\Tenancy\Bootstrappers\PrefixCacheTenancyBootstrapper; beforeEach(function () { @@ -32,6 +32,9 @@ beforeEach(function () { afterEach(function () { PrefixCacheTenancyBootstrapper::$tenantCacheStores = []; + PrefixCacheTenancyBootstrapper::$prefixGenerators = []; + + TenancyCacheManager::$addTags = true; }); test('Tenancy overrides CacheManager', function() {