refactor: generalise logic in the fake repository

This commit is contained in:
Oliver Davies 2022-01-13 23:06:25 +00:00
parent ae38fbf2b9
commit f3eda70384
3 changed files with 8 additions and 21 deletions

View file

@ -13,7 +13,7 @@ trait EventRepositoryContractTest
{
$attendees = $this->repository->getConfirmedAttendees();
$this->assertCount(3, $attendees);
$this->assertFalse($attendees->pluck('is_attending')->contains(false));
}
/** @test */
@ -21,6 +21,6 @@ trait EventRepositoryContractTest
{
$attendees = $this->repository->getConfirmedAttendees();
$this->assertCount(3, $attendees);
$this->assertFalse($attendees->pluck('is_host')->contains(true));
}
}