diff --git a/tests/BootstrapperTest.php b/tests/BootstrapperTest.php index fe62a9ae..4f11e617 100644 --- a/tests/BootstrapperTest.php +++ b/tests/BootstrapperTest.php @@ -93,6 +93,7 @@ test('database data is separated', function () { }); test('cache data is separated', function (string $bootstrapper) { + // Make sure that the prefixed 'redis' cache driver is used expect(config('cache.default'))->toBe('redis'); config([ diff --git a/tests/PrefixCacheBootstrapperTest.php b/tests/PrefixCacheBootstrapperTest.php index 9d078db1..939213c9 100644 --- a/tests/PrefixCacheBootstrapperTest.php +++ b/tests/PrefixCacheBootstrapperTest.php @@ -231,7 +231,8 @@ test('specific central cache store can be used inside a service', function () { test('only the stores specified in tenantCacheStores get prefixed', function() { // Make sure the currently used store ('redis') is the only store in $tenantCacheStores - PrefixCacheTenancyBootstrapper::$tenantCacheStores = [$prefixedStore = 'redis']; + expect(PrefixCacheTenancyBootstrapper::$tenantCacheStores)->toBe([$prefixedStore = 'redis']); + $centralValue = 'central-value'; $assertStoreIsNotPrefixed = function (string $unprefixedStore) use ($prefixedStore, $centralValue) { // Switch to the unprefixed store