mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Covered Request Management Services with Unit Tests
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace tests\Integration\Domain\RequestManagement\Right;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use App\Domain\RepositoryManagement\LayerRepositoryFactoryServiceInterface;
|
||||
use App\DBAL\Types\Meta\Right\LayerType;
|
||||
use App\Repository\Meta\LawRepository;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
class LayerRepositoryFactoryServiceIntegrationTest extends KernelTestCase
|
||||
{
|
||||
/**
|
||||
* @var LayerRepositoryFactoryServiceInterface
|
||||
*/
|
||||
private $layerRepositoryFactoryService;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \PHPUnit\Framework\TestCase::setUp()
|
||||
*/
|
||||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
$this->layerRepositoryFactoryService = self::$container->get(LayerRepositoryFactoryServiceInterface::class);
|
||||
}
|
||||
|
||||
public function testLayer(): void
|
||||
{
|
||||
$layer = LayerType::LAW;
|
||||
$this->assertInstanceOf(LawRepository::class, $this->layerRepositoryFactoryService->getRepository($layer));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user