mirror of
https://github.com/archtechx/tenancy.git
synced 2026-06-20 22:04:02 +00:00
remove seemingly unnecessary static prop resets from tests
This commit is contained in:
parent
566f50440a
commit
5e708bbaec
2 changed files with 0 additions and 9 deletions
|
|
@ -24,14 +24,12 @@ use Stancl\Tenancy\Listeners\BootstrapTenancy;
|
|||
use Stancl\Tenancy\Listeners\RevertToCentralContext;
|
||||
use Stancl\Tenancy\Middleware\InitializeTenancyByPath;
|
||||
use Stancl\Tenancy\Resolvers\RequestDataTenantResolver;
|
||||
use Stancl\Tenancy\TenancyServiceProvider;
|
||||
use function Stancl\Tenancy\Tests\pest;
|
||||
use function Stancl\Tenancy\Tests\withCacheTables;
|
||||
use function Stancl\Tenancy\Tests\withTenantDatabases;
|
||||
|
||||
beforeEach($cleanup = function () {
|
||||
Tenant::$extraCustomColumns = [];
|
||||
TenancyServiceProvider::$adjustCacheManagerUsing = null;
|
||||
});
|
||||
|
||||
afterEach($cleanup);
|
||||
|
|
|
|||
|
|
@ -13,14 +13,11 @@ use Stancl\Tenancy\Bootstrappers\CacheTagsBootstrapper;
|
|||
use Stancl\Tenancy\Bootstrappers\CacheTenancyBootstrapper;
|
||||
use Stancl\Tenancy\Bootstrappers\DatabaseCacheBootstrapper;
|
||||
use Stancl\Tenancy\Bootstrappers\DatabaseTenancyBootstrapper;
|
||||
use Stancl\Tenancy\TenancyServiceProvider;
|
||||
|
||||
use function Stancl\Tenancy\Tests\withCacheTables;
|
||||
use function Stancl\Tenancy\Tests\withTenantDatabases;
|
||||
|
||||
beforeEach(function () {
|
||||
TenancyServiceProvider::$adjustCacheManagerUsing = null;
|
||||
|
||||
config([
|
||||
'cache.default' => 'redis',
|
||||
'tenancy.cache.stores' => ['redis'],
|
||||
|
|
@ -32,10 +29,6 @@ beforeEach(function () {
|
|||
withCacheTables();
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
TenancyServiceProvider::$adjustCacheManagerUsing = null;
|
||||
});
|
||||
|
||||
test('global cache manager stores data in global cache', function (string $store, array $bootstrappers) {
|
||||
config([
|
||||
'cache.default' => $store,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue