Skip to content

Commit

Permalink
fix: rename quiz 'name' property to 'title'
Browse files Browse the repository at this point in the history
  • Loading branch information
JokeUrSelf committed Sep 8, 2024
1 parent 1cf0ae4 commit f802410
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function run(): void

Quiz::factory()->locked()->count(5)->create(["scheduled_at" => Carbon::now()->addMonth()]);

$quiz = Quiz::factory()->locked()->create(["name" => "Test Quiz", "scheduled_at" => Carbon::now(), "duration" => 2]);
$quiz = Quiz::factory()->locked()->create(["title" => "Test Quiz", "scheduled_at" => Carbon::now(), "duration" => 2]);
$questions = Question::factory()->count(10)->create(["quiz_id" => $quiz->id]);

foreach ($questions as $question) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/QuizSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function testUserCanSeeSubmissionResult(): void
->assertInertia(
fn(Assert $page) => $page
->component("User/QuizResult")
->where("submission.name", $quiz->name)
->where("submission.name", $quiz->title)
->count("submission.answers", 2)
->where("hasRanking", true),
);
Expand Down

0 comments on commit f802410

Please sign in to comment.