From 9925e491126ed1f8bd44bfca083f51954e627868 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Mon, 17 Apr 2023 15:11:30 +0200 Subject: [PATCH] Assert that cache is null from the beginning --- tests/PrefixCacheBootstrapperTest.php | 2 ++ 1 file changed, 2 insertions(+) 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');