diff --git a/tests/PrefixCacheBootstrapperTest.php b/tests/PrefixCacheBootstrapperTest.php index 933c73da..5c2e60d0 100644 --- a/tests/PrefixCacheBootstrapperTest.php +++ b/tests/PrefixCacheBootstrapperTest.php @@ -168,6 +168,8 @@ test('cache base prefix is customizable', function () { test('cache is prefixed correctly when using a repository injected in a singleton', function () { $this->app->singleton(CacheService::class); + expect(cache('key'))->toBeNull(); + $this->app->make(CacheService::class)->handle(); expect(cache('key'))->toBe('central-value');