fix tests

This commit is contained in:
Romulus21
2024-02-24 23:15:14 +01:00
parent a818daeb38
commit 6dd147c3e2
4 changed files with 28 additions and 9 deletions

View File

@@ -20,7 +20,7 @@ class ToDoFactory extends Factory
return [
'user_id' => User::inRandomOrder()->value('id'),
'name' => $this->faker->words(1, 4),
'checked' => $this->faker->boolean,
'checked' => rand(0, 1) ? now() : null,
];
}
}