From 42381d00e2d218feba10b9dfcc41f3e02aa42fd1 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Thu, 5 Jan 2023 16:14:20 +0100 Subject: [PATCH] Remove redundant CacheManager extend() call --- tests/PrefixCacheBootstrapperTest.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/PrefixCacheBootstrapperTest.php b/tests/PrefixCacheBootstrapperTest.php index f547a99a..cf324bed 100644 --- a/tests/PrefixCacheBootstrapperTest.php +++ b/tests/PrefixCacheBootstrapperTest.php @@ -181,18 +181,6 @@ test('stores other than the default one are not prefixed', function () { config(['cache.default' => 'redis']); config(['cache.stores.redis2' => config('cache.stores.redis')]); - app(CacheManager::class)->extend('redis2', function($config) { - $redis = $this->app['redis']; - - $connection = $config['connection'] ?? 'default'; - - $store = new RedisStore($redis, $this->getPrefix($config), $connection); - - return $this->repository( - $store->setLockConnection($config['lock_connection'] ?? $connection) - ); - }); - $this->app->singleton(CacheManagerService::class); app()->make(CacheManagerService::class)->handle();