From 121eab93aacf1ab7ef0056abddaf6e40267bd5d8 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 13 Jan 2022 21:22:01 +0000 Subject: [PATCH] test: add event organiser test --- tests/FakeEventRepositoryTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/FakeEventRepositoryTest.php b/tests/FakeEventRepositoryTest.php index 0950e02..a18bf13 100644 --- a/tests/FakeEventRepositoryTest.php +++ b/tests/FakeEventRepositoryTest.php @@ -19,7 +19,14 @@ final class FakeEventRepositoryTest extends KernelTestCase /** @test */ public function should_only_return_attendees_with_a_yes_rsvp(): void { + $attendees = $this->repository->getConfirmedAttendees(); + $this->assertCount(3, $attendees); + } + + /** @test */ + public function should_not_return_event_organisers(): void + { $attendees = $this->repository->getConfirmedAttendees(); $this->assertCount(3, $attendees);