refactor: generalise logic in the fake repository
This commit is contained in:
parent
ae38fbf2b9
commit
f3eda70384
3 changed files with 8 additions and 21 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue