From f7c8f226c34fb17a4a62507151b8999c2802b960 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 18 Apr 2023 14:20:21 +0200 Subject: [PATCH] Add assertions + comment --- tests/PrefixCacheBootstrapperTest.php | 2 ++ 1 file changed, 2 insertions(+) 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());