fill(['clearCacheUrl' => 'http://event.com/clear-cache'])->save(); Http::fake(function ($request) { if ($request->url() === $this->clearCacheUrl) { return Http::response('', 200); } }); Storage::fake('temp'); } protected function assertFrontendCacheCleared(): void { Http::assertSent(fn ($request) => $request->url() === $this->clearCacheUrl && $request->method() === 'GET'); } }