From cc11c2e7073772c8560d7c69c2b4e5b994e24fd8 Mon Sep 17 00:00:00 2001 From: AmonDeShir Date: Tue, 20 Aug 2024 10:02:27 +0200 Subject: [PATCH] change url to route --- tests/Feature/QuizTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Feature/QuizTest.php b/tests/Feature/QuizTest.php index a7127fe9..09147abc 100644 --- a/tests/Feature/QuizTest.php +++ b/tests/Feature/QuizTest.php @@ -330,7 +330,7 @@ public function testUserCanStartQuiz(): void "quiz_id" => $quiz->id, ])->firstOrFail(); - $response->assertRedirect("/submissions/$submission->id/"); + $response->assertRedirect(route("submissions.show", $submission->id)); } public function testUserCannotStartAlreadyStartedQuiz(): void