26 lines
573 B
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);
|
|
}
|
|
}
|