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

Delete redundant config put calls

This commit is contained in:
lukinovec 2023-04-18 14:27:57 +02:00
parent f7c8f226c3
commit 4b862e2bd6

View file

@ -196,7 +196,6 @@ test('cache is prefixed correctly when using a repository injected in a singleto
}); });
test('specific central cache store can be used inside a service', function () { test('specific central cache store can be used inside a service', function () {
config(['cache.default' => 'redis']);
$cacheStore = 'redis2'; // Name of the non-default, central cache store that we'll use using cache()->store($cacheStore) $cacheStore = 'redis2'; // Name of the non-default, central cache store that we'll use using cache()->store($cacheStore)
// Service uses the 'redis2' store which is central/not prefixed (not present in PrefixCacheTenancyBootstrapper::$tenantCacheStores) // Service uses the 'redis2' store which is central/not prefixed (not present in PrefixCacheTenancyBootstrapper::$tenantCacheStores)
@ -322,7 +321,6 @@ test('non default stores get prefixed too when specified in tenantCacheStores',
}); });
test('cache store prefix generation can be customized', function() { test('cache store prefix generation can be customized', function() {
config(['cache.default' => 'redis']);
PrefixCacheTenancyBootstrapper::$tenantCacheStores = ['redis', 'redis2']; PrefixCacheTenancyBootstrapper::$tenantCacheStores = ['redis', 'redis2'];
// Use custom prefix generator // Use custom prefix generator