diff --git a/tests/Etc/CacheAction.php b/tests/Etc/CacheService.php similarity index 89% rename from tests/Etc/CacheAction.php rename to tests/Etc/CacheService.php index d72d7f32..8e5d17d3 100644 --- a/tests/Etc/CacheAction.php +++ b/tests/Etc/CacheService.php @@ -6,7 +6,7 @@ namespace Stancl\Tenancy\Tests\Etc; use Illuminate\Cache\Repository; -class CacheAction // todo renamed to CacheService +class CacheService { public function __construct( protected Repository $cache diff --git a/tests/PrefixCacheBootstrapperTest.php b/tests/PrefixCacheBootstrapperTest.php index 3a161714..bf977e82 100644 --- a/tests/PrefixCacheBootstrapperTest.php +++ b/tests/PrefixCacheBootstrapperTest.php @@ -8,7 +8,7 @@ use Stancl\Tenancy\Events\TenancyEnded; use Stancl\Tenancy\Events\TenancyInitialized; use Stancl\Tenancy\Listeners\BootstrapTenancy; use Stancl\Tenancy\Listeners\RevertToCentralContext; -use Stancl\Tenancy\Tests\Etc\CacheAction; +use Stancl\Tenancy\Tests\Etc\CacheService; beforeEach(function () { config([ @@ -124,9 +124,9 @@ test('cache base prefix is customizable', function () { }); test('prefix separate cache well enough using CacheManager dependency injection', function () { - $this->app->singleton(CacheAction::class); + $this->app->singleton(CacheService::class); - app()->make(CacheAction::class)->handle(); + app()->make(CacheService::class)->handle(); expect(cache('key'))->toBe('central-value'); @@ -135,13 +135,13 @@ test('prefix separate cache well enough using CacheManager dependency injection' tenancy()->initialize($tenant1); expect(cache('key'))->toBeNull(); - app()->make(CacheAction::class)->handle(); + app()->make(CacheService::class)->handle(); expect(cache('key'))->toBe($tenant1->getTenantKey()); tenancy()->initialize($tenant2); expect(cache('key'))->toBeNull(); - app()->make(CacheAction::class)->handle(); + app()->make(CacheService::class)->handle(); expect(cache('key'))->toBe($tenant2->getTenantKey()); tenancy()->end();