test: add event organiser test

This commit is contained in:
Oliver Davies 2022-01-13 21:22:01 +00:00
parent 39a65c725c
commit 121eab93aa

View file

@ -19,7 +19,14 @@ final class FakeEventRepositoryTest extends KernelTestCase
/** @test */ /** @test */
public function should_only_return_attendees_with_a_yes_rsvp(): void 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(); $attendees = $this->repository->getConfirmedAttendees();
$this->assertCount(3, $attendees); $this->assertCount(3, $attendees);