From e3be29f3e838fb7c6bd5c772bbe1f14db561b0c4 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Mon, 7 Sep 2026 19:17:11 +0100 Subject: [PATCH] flush the file cache after each mounting test `MountingTest` switches to the `file` cache driver and only clears it before each test, leaving stale stache entries on disk for later tests that use the same driver. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_015MAdoF7RTBQ4mUTaki7k2e --- tests/Feature/Entries/MountingTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Feature/Entries/MountingTest.php b/tests/Feature/Entries/MountingTest.php index 9f771f4e248..544f74f4346 100644 --- a/tests/Feature/Entries/MountingTest.php +++ b/tests/Feature/Entries/MountingTest.php @@ -14,6 +14,13 @@ class MountingTest extends TestCase { use PreventSavingStacheItemsToDisk; + public function tearDown(): void + { + Cache::store('file')->flush(); + + parent::tearDown(); + } + #[Test] public function updating_a_mounted_page_will_update_the_uris_for_each_entry_in_that_collection() {