mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 22:37:28 +01:00
38 lines
1018 B
PHP
38 lines
1018 B
PHP
|
<?php
|
||
|
|
||
|
namespace tests\Integration\Domain\RequestManagement\Entity;
|
||
|
|
||
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||
|
use App\Domain\RequestManagement\Entity\RequestedEntityServiceInterface;
|
||
|
use App\Domain\RequestManagement\Entity\RequestedEntityService;
|
||
|
use App\Entity\Source\AbstractSource;
|
||
|
|
||
|
/**
|
||
|
* @author kevinfrantz
|
||
|
*/
|
||
|
class RequestedEntityServiceIntegrationTest extends KernelTestCase
|
||
|
{
|
||
|
/**
|
||
|
* @var RequestedEntityServiceInterface
|
||
|
*/
|
||
|
private $requestedEntityService;
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*
|
||
|
* @see \PHPUnit\Framework\TestCase::setUp()
|
||
|
*/
|
||
|
public function setUp(): void
|
||
|
{
|
||
|
self::bootKernel();
|
||
|
$this->requestedEntityService = self::$container->get(RequestedEntityService::class);
|
||
|
}
|
||
|
|
||
|
public function testClassAccessors(): void
|
||
|
{
|
||
|
$class = AbstractSource::class;
|
||
|
$this->assertNull($this->requestedEntityService->setClass($class));
|
||
|
$this->assertEquals($class, $this->requestedEntityService->getClass());
|
||
|
}
|
||
|
}
|