mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 04:24:03 +00:00
Reset static properties in afterEach
This commit is contained in:
parent
840cd831d6
commit
66669934f9
1 changed files with 4 additions and 1 deletions
|
|
@ -8,9 +8,9 @@ use Stancl\Tenancy\Events\TenancyEnded;
|
||||||
use Stancl\Tenancy\Tests\Etc\CacheService;
|
use Stancl\Tenancy\Tests\Etc\CacheService;
|
||||||
use Stancl\Tenancy\Events\TenancyInitialized;
|
use Stancl\Tenancy\Events\TenancyInitialized;
|
||||||
use Stancl\Tenancy\Listeners\BootstrapTenancy;
|
use Stancl\Tenancy\Listeners\BootstrapTenancy;
|
||||||
use Stancl\Tenancy\Tests\Etc\SpecificCacheStoreService;
|
|
||||||
use Stancl\Tenancy\Listeners\RevertToCentralContext;
|
use Stancl\Tenancy\Listeners\RevertToCentralContext;
|
||||||
use Stancl\Tenancy\CacheManager as TenancyCacheManager;
|
use Stancl\Tenancy\CacheManager as TenancyCacheManager;
|
||||||
|
use Stancl\Tenancy\Tests\Etc\SpecificCacheStoreService;
|
||||||
use Stancl\Tenancy\Bootstrappers\PrefixCacheTenancyBootstrapper;
|
use Stancl\Tenancy\Bootstrappers\PrefixCacheTenancyBootstrapper;
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
|
|
@ -32,6 +32,9 @@ beforeEach(function () {
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
PrefixCacheTenancyBootstrapper::$tenantCacheStores = [];
|
PrefixCacheTenancyBootstrapper::$tenantCacheStores = [];
|
||||||
|
PrefixCacheTenancyBootstrapper::$prefixGenerators = [];
|
||||||
|
|
||||||
|
TenancyCacheManager::$addTags = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Tenancy overrides CacheManager', function() {
|
test('Tenancy overrides CacheManager', function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue