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

17 lines
414 B
PHP
Raw Normal View History

2022-01-13 20:13:28 +00:00
<?php
namespace App\Tests;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
2022-01-13 20:29:32 +00:00
final class FakeEventRepositoryTest extends KernelTestCase
2022-01-13 20:13:28 +00:00
{
/** @test */
2022-01-13 20:18:14 +00:00
public function should_only_return_attendees_with_a_yes_rsvp(): void {
$repository = new FakeEventRepository();
$attendees = $repository->getConfirmedAttendees();
2022-01-13 20:18:14 +00:00
$this->assertCount(3, $attendees->pluck('name'));
2022-01-13 20:13:28 +00:00
}
}