seed(ContentSeeder::class); View::share('PageList', Page::getCached() ->mapWithKeys(fn ($page) => [ $page->slug->value() => $page, ])); Cache::flush(); // WHEN $response = $this->get('/ajax/shops/1/pickup-timeslots'); // THEN $response->assertStatus(404); }); });