From 19255fd98fc325550d381dd84c30d0fa38637bf6 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Wed, 7 Dec 2022 18:24:55 +0500 Subject: [PATCH] use Repository in service class DI --- tests/Etc/CacheAction.php | 4 ++-- tests/PrefixCacheBootstrapperTest.php | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/Etc/CacheAction.php b/tests/Etc/CacheAction.php index 01da11e8..825b8772 100644 --- a/tests/Etc/CacheAction.php +++ b/tests/Etc/CacheAction.php @@ -4,12 +4,12 @@ declare(strict_types=1); namespace Stancl\Tenancy\Tests\Etc; -use Illuminate\Cache\CacheManager; +use Illuminate\Cache\Repository; class CacheAction { public function __construct( - protected CacheManager $cache + protected Repository $cache ){ } diff --git a/tests/PrefixCacheBootstrapperTest.php b/tests/PrefixCacheBootstrapperTest.php index 3c342f36..3a161714 100644 --- a/tests/PrefixCacheBootstrapperTest.php +++ b/tests/PrefixCacheBootstrapperTest.php @@ -12,7 +12,9 @@ use Stancl\Tenancy\Tests\Etc\CacheAction; beforeEach(function () { config([ - 'tenancy.bootstrappers' => [PrefixCacheTenancyBootstrapper::class], + 'tenancy.bootstrappers' => [ + PrefixCacheTenancyBootstrapper::class + ], 'cache.default' => 'redis', ]);