Require unique room name on factory
This commit is contained in:
parent
cde4925368
commit
33d0b6ca55
|
|
@ -17,7 +17,7 @@ class RoomFactory extends Factory
|
||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'name' => 'Room '.fake()->numberBetween(7, 500),
|
'name' => 'Room '.fake()->unique()->numberBetween(7, 500),
|
||||||
'description' => fake()->sentence(),
|
'description' => fake()->sentence(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -90,9 +90,9 @@ it('shows existing entries in a table', function () {
|
||||||
$response->
|
$response->
|
||||||
assertSeeInOrder([
|
assertSeeInOrder([
|
||||||
'<td',
|
'<td',
|
||||||
$entry->student->full_name(true),
|
e($entry->student->full_name(true)),
|
||||||
$entry->student->grade,
|
$entry->student->grade,
|
||||||
$entry->audition->name,
|
e($entry->audition->name),
|
||||||
'</td>',
|
'</td>',
|
||||||
], false);
|
], false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue