1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-06-21 01:34:04 +00:00

Clean up $adjustCacheManagerUsing in before and afterEach

This commit is contained in:
lukinovec 2026-06-01 15:38:27 +02:00
parent fd1aa2439a
commit 20036ef1ff
2 changed files with 9 additions and 0 deletions

View file

@ -24,12 +24,14 @@ 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);