2022-01-13 20:13:28 +00:00
|
|
|
<?php
|
|
|
|
|
2022-01-14 00:08:24 +00:00
|
|
|
namespace App\Tests\Fake;
|
2022-01-13 20:13:28 +00:00
|
|
|
|
2022-01-13 21:02:13 +00:00
|
|
|
use App\EventRepository;
|
2022-01-14 00:08:24 +00:00
|
|
|
use App\Tests\EventRepositoryContractTest;
|
2022-01-13 20:13:28 +00:00
|
|
|
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
|
|
|
{
|
2022-01-13 22:03:50 +00:00
|
|
|
use EventRepositoryContractTest;
|
|
|
|
|
2022-01-14 01:00:47 +00:00
|
|
|
public static int $eventId = 123;
|
|
|
|
|
2022-01-13 21:06:46 +00:00
|
|
|
private EventRepository $repository;
|
|
|
|
|
|
|
|
public function setUp(): void
|
|
|
|
{
|
|
|
|
self::bootKernel();
|
|
|
|
|
2022-01-13 23:26:42 +00:00
|
|
|
$container = static::$container;
|
|
|
|
|
|
|
|
$container->set(EventRepository::class, new FakeEventRepository());
|
|
|
|
|
2022-01-13 21:06:46 +00:00
|
|
|
$this->repository = static::$container->get(EventRepository::class);
|
|
|
|
}
|
2022-01-13 20:13:28 +00:00
|
|
|
}
|