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

26 lines
573 B
PHP

<?php
namespace App\Tests\Fake;
use App\EventRepository;
use App\Tests\EventRepositoryContractTest;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
final class FakeEventRepositoryTest extends KernelTestCase
{
use EventRepositoryContractTest;
private EventRepository $repository;
public function setUp(): void
{
self::bootKernel();
$container = static::$container;
$container->set(EventRepository::class, new FakeEventRepository());
$this->repository = static::$container->get(EventRepository::class);
}
}