Skip to content

Commit 5e708bb

Browse files
committed
remove seemingly unnecessary static prop resets from tests
1 parent 566f504 commit 5e708bb

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

tests/CachedTenantResolverTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@
2424
use Stancl\Tenancy\Listeners\RevertToCentralContext;
2525
use Stancl\Tenancy\Middleware\InitializeTenancyByPath;
2626
use Stancl\Tenancy\Resolvers\RequestDataTenantResolver;
27-
use Stancl\Tenancy\TenancyServiceProvider;
2827
use function Stancl\Tenancy\Tests\pest;
2928
use function Stancl\Tenancy\Tests\withCacheTables;
3029
use function Stancl\Tenancy\Tests\withTenantDatabases;
3130

3231
beforeEach($cleanup = function () {
3332
Tenant::$extraCustomColumns = [];
34-
TenancyServiceProvider::$adjustCacheManagerUsing = null;
3533
});
3634

3735
afterEach($cleanup);

tests/GlobalCacheTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,11 @@
1313
use Stancl\Tenancy\Bootstrappers\CacheTenancyBootstrapper;
1414
use Stancl\Tenancy\Bootstrappers\DatabaseCacheBootstrapper;
1515
use Stancl\Tenancy\Bootstrappers\DatabaseTenancyBootstrapper;
16-
use Stancl\Tenancy\TenancyServiceProvider;
1716

1817
use function Stancl\Tenancy\Tests\withCacheTables;
1918
use function Stancl\Tenancy\Tests\withTenantDatabases;
2019

2120
beforeEach(function () {
22-
TenancyServiceProvider::$adjustCacheManagerUsing = null;
23-
2421
config([
2522
'cache.default' => 'redis',
2623
'tenancy.cache.stores' => ['redis'],
@@ -32,10 +29,6 @@
3229
withCacheTables();
3330
});
3431

35-
afterEach(function () {
36-
TenancyServiceProvider::$adjustCacheManagerUsing = null;
37-
});
38-
3932
test('global cache manager stores data in global cache', function (string $store, array $bootstrappers) {
4033
config([
4134
'cache.default' => $store,

0 commit comments

Comments
 (0)