1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 04:44:03 +00:00

Small testing improvements

This commit is contained in:
lukinovec 2023-04-14 12:33:08 +02:00
parent 3481e24c7d
commit 0c1912b9c5
2 changed files with 14 additions and 17 deletions

View file

@ -53,8 +53,8 @@ test('global cache manager stores data in global cache', function (string $boots
tenancy()->initialize($tenant1);
expect(cache('def'))->toBe('ghi');
})->with([
'tagging' => CacheTagsBootstrapper::class,
'prefixing' => PrefixCacheTenancyBootstrapper::class,
CacheTagsBootstrapper::class,
PrefixCacheTenancyBootstrapper::class,
]);
test('the global_cache helper supports the same syntax as the cache helper', function (string $bootstrapper) {
@ -73,6 +73,6 @@ test('the global_cache helper supports the same syntax as the cache helper', fun
expect(cache('foo'))->toBe(null); // tenant cache is not affected
})->with([
'tagging' => CacheTagsBootstrapper::class,
'prefixing' => PrefixCacheTenancyBootstrapper::class,
CacheTagsBootstrapper::class,
PrefixCacheTenancyBootstrapper::class,
]);