Write tests - Write tests for what was done to this point that will be kept #11

Merged
okorpheus merged 61 commits from write-tests into master 2024-07-05 21:21:32 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 33d0b6ca55 - Show all commits

View File

@ -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(),
]; ];
} }

View File

@ -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);
} }