From 84df3de5622000c332f94a7f6c89e4cab56c1a03 Mon Sep 17 00:00:00 2001 From: Shlee Date: Fri, 11 Sep 2026 20:20:06 +0930 Subject: [PATCH] Update StoryExpireRemoteCacheTest.php --- tests/Feature/StoryExpireRemoteCacheTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Feature/StoryExpireRemoteCacheTest.php b/tests/Feature/StoryExpireRemoteCacheTest.php index bdb2e8688..1d475d0df 100644 --- a/tests/Feature/StoryExpireRemoteCacheTest.php +++ b/tests/Feature/StoryExpireRemoteCacheTest.php @@ -3,7 +3,6 @@ use App\Jobs\StoryPipeline\StoryExpire; use App\Models\Profile; use App\Models\Story; -use App\Models\User; use App\Services\StoryIndexService; use App\Services\StoryService; use Illuminate\Foundation\Testing\LazilyRefreshDatabase; @@ -48,7 +47,7 @@ it('invalidates both story caches when a remote story expires', function () { 'expires_at' => now()->addHours(24), ])->save(); $index = app(StoryIndexService::class); - $cacheKey = StoryService::STORY_KEY . 'latest:pid-' . $author->id; + $cacheKey = StoryService::STORY_KEY.'latest:pid-'.$author->id; // Index is empty, so this warms the SQL-backed cache. expect(StoryService::latest($author->id))->toBe($story->id);