meetup-raffle-winner-picker/tests/FakeEventRepository.php

20 lines
479 B
PHP

<?php
declare(strict_types=1);
namespace App\Tests;
use App\EventRepository;
use Tightenco\Collect\Support\Collection;
final class FakeEventRepository implements EventRepository
{
public function getConfirmedAttendees(): Collection {
return Collection::make([
['name' => 'matthew s.', 'response' => 'yes'],
['name' => 'Michael P.', 'response' => 'yes'],
['name' => 'Kathryn "Kat" R.', 'response' => 'yes'],
]);
}
}