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

20 lines
416 B
PHP
Raw Normal View History

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