Require unique room name on factory

This commit is contained in:
Matt Young 2024-07-05 15:21:54 -05:00
parent cde4925368
commit 33d0b6ca55
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class RoomFactory extends Factory
public function definition(): array
{
return [
'name' => 'Room '.fake()->numberBetween(7, 500),
'name' => 'Room '.fake()->unique()->numberBetween(7, 500),
'description' => fake()->sentence(),
];
}

View File

@ -90,9 +90,9 @@ it('shows existing entries in a table', function () {
$response->
assertSeeInOrder([
'<td',
$entry->student->full_name(true),
e($entry->student->full_name(true)),
$entry->student->grade,
$entry->audition->name,
e($entry->audition->name),
'</td>',
], false);
}