mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 01:14:04 +00:00
Toggle cache tags
This commit is contained in:
parent
5c6226befc
commit
87efdd2954
5 changed files with 17 additions and 5 deletions
|
|
@ -28,6 +28,7 @@ use Stancl\Tenancy\Bootstrappers\CacheTenancyBootstrapper;
|
|||
use Stancl\Tenancy\Bootstrappers\RedisTenancyBootstrapper;
|
||||
use Stancl\Tenancy\Bootstrappers\DatabaseTenancyBootstrapper;
|
||||
use Stancl\Tenancy\Bootstrappers\FilesystemTenancyBootstrapper;
|
||||
use Stancl\Tenancy\CacheManager;
|
||||
|
||||
beforeEach(function () {
|
||||
$this->mockConsoleOutput = false;
|
||||
|
|
@ -75,6 +76,8 @@ test('database data is separated', function () {
|
|||
});
|
||||
|
||||
test('cache data is separated', function (string $bootstrapper) {
|
||||
CacheManager::$addTags = true;
|
||||
|
||||
config([
|
||||
'tenancy.bootstrappers' => [$bootstrapper],
|
||||
'cache.default' => 'redis',
|
||||
|
|
@ -114,7 +117,7 @@ test('cache data is separated', function (string $bootstrapper) {
|
|||
})->with([
|
||||
'CacheTenancyBootstrapper' => CacheTenancyBootstrapper::class,
|
||||
'PrefixCacheTenancyBootstrapper' => PrefixCacheTenancyBootstrapper::class,
|
||||
]);
|
||||
])->group('bootstrapper');
|
||||
|
||||
test('redis data is separated', function () {
|
||||
config(['tenancy.bootstrappers' => [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue