From 0ac6c0f947905731d6b865a8eba809b09ed4f4e5 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 13 Jan 2022 21:15:02 +0000 Subject: [PATCH] refactor: no need to pluck in assertion --- tests/FakeEventRepositoryTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/FakeEventRepositoryTest.php b/tests/FakeEventRepositoryTest.php index 7511c9f..24d1483 100644 --- a/tests/FakeEventRepositoryTest.php +++ b/tests/FakeEventRepositoryTest.php @@ -21,6 +21,6 @@ final class FakeEventRepositoryTest extends KernelTestCase $attendees = $this->repository->getConfirmedAttendees(); - $this->assertCount(3, $attendees->pluck('name')); + $this->assertCount(3, $attendees); } }