false, 'session.driver' => 'array', 'cache.default' => 'array', 'mail.default' => 'array', ]); $this->withoutMiddleware(ValidateCsrfToken::class); } /** * POST with a real CSRF token for Fortify/web form tests. * * @param array $data */ protected function csrfPost(string $uri, array $data = []): TestResponse { $token = 'test-csrf-token'; return $this->withSession(['_token' => $token]) ->post($uri, ['_token' => $token, ...$data]); } protected function skipUnlessFortifyHas(string $feature, ?string $message = null): void { if (! Features::enabled($feature)) { $this->markTestSkipped($message ?? "Fortify feature [{$feature}] is not enabled."); } } }