diff --git a/tests/EventRepositoryTest.php b/tests/EventRepositoryTest.php index ebc340e..7dd56ef 100644 --- a/tests/EventRepositoryTest.php +++ b/tests/EventRepositoryTest.php @@ -3,17 +3,18 @@ namespace App\Tests; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; +use Tightenco\Collect\Support\Collection; final class EventRepositoryTest extends KernelTestCase { /** @test */ public function should_only_return_attendees_with_a_yes_rsvp(): void { - $attendees = [ + $attendees = Collection::make([ ['name' => 'Matthew Setter'], ['name' => 'Matthew Setter'], ['name' => 'Matthew Setter'], - ]; + ]); - $this->assertCount(3, $attendees); + $this->assertCount(3, $attendees->pluck('name')); } }