refactor: group fake classes
This commit is contained in:
parent
ae0e0c2437
commit
767c6f2ced
2 changed files with 3 additions and 2 deletions
25
tests/Fake/FakeEventRepositoryTest.php
Normal file
25
tests/Fake/FakeEventRepositoryTest.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue