diff --git a/tests/PrefixCacheBootstrapperTest.php b/tests/PrefixCacheBootstrapperTest.php index adcd9503..b94caa1a 100644 --- a/tests/PrefixCacheBootstrapperTest.php +++ b/tests/PrefixCacheBootstrapperTest.php @@ -339,6 +339,7 @@ test('cache store prefix generation can be customized', function() { // Expect the 'redis' store to use the prefix generated by the custom generator expect($customPrefixGenerator($tenant) . ':') ->toBe(cache()->getPrefix()) + ->toBe(cache()->store('redis2')->getPrefix()) // Non-default cache stores are prefixed too (when they're in $tenantCacheStores) ->toBe(app('cache')->getPrefix()) ->toBe(app('cache.store')->getPrefix()); @@ -352,6 +353,7 @@ test('cache store prefix generation can be customized', function() { expect($customPrefixGenerator($tenant) . ':') ->toBe(cache()->getPrefix()) + ->toBe(cache()->store('redis')->getPrefix()) ->toBe(app('cache')->getPrefix()) ->toBe(app('cache.store')->getPrefix());