diff --git a/database/factories/EventFactory.php b/database/factories/EventFactory.php index e481e64..640cc93 100644 --- a/database/factories/EventFactory.php +++ b/database/factories/EventFactory.php @@ -17,7 +17,7 @@ class EventFactory extends Factory public function definition(): array { return [ - 'name' => $this->faker->unique()->name(), + 'name' => $this->faker->unique()->firstName, ]; } } diff --git a/tests/Feature/Pages/Admin/SchoolsIndexTest.php b/tests/Feature/Pages/Admin/SchoolsIndexTest.php index 630669b..bc05450 100644 --- a/tests/Feature/Pages/Admin/SchoolsIndexTest.php +++ b/tests/Feature/Pages/Admin/SchoolsIndexTest.php @@ -73,7 +73,7 @@ it('shows school data', function () { foreach ($this->schools as $school) { $response->assertSeeInOrder([ 'td', - $school->name, + e($school->name), '/td', 'td', $invoiceDataService->getGrandTotal($school->id), diff --git a/tests/Feature/Pages/Setup/EnsemblesIndexTest.php b/tests/Feature/Pages/Setup/EnsemblesIndexTest.php index 3f52136..45f7b58 100644 --- a/tests/Feature/Pages/Setup/EnsemblesIndexTest.php +++ b/tests/Feature/Pages/Setup/EnsemblesIndexTest.php @@ -47,7 +47,7 @@ it('shows ensemble data', function () { foreach ($events as $event) { foreach ($event->ensembles as $ensemble) { $response->assertSeeInOrder([ - $event->name, '