refactor: move attendees into the fake repository

This commit is contained in:
Oliver Davies 2022-01-13 20:36:10 +00:00
parent f192dd720c
commit 7b5da6e46a
3 changed files with 12 additions and 9 deletions

View file

@ -5,10 +5,15 @@ declare(strict_types=1);
namespace App\Tests;
use App\EventRepository;
use Tightenco\Collect\Support\Collection;
final class FakeEventRepository implements EventRepository
{
public function getConfirmedAttendees(): array {
return [];
public function getConfirmedAttendees(): Collection {
return Collection::make([
['name' => 'matthew s.'],
['name' => 'Michael P.'],
['name' => 'Kathryn "Kat" R.'],
]);
}
}