infinito/application/symfony/tests/Integration/Domain/RequestManagement/Entity/RequestedEntityServiceIntegrationTest.php
2019-02-17 14:33:19 +01:00

37 lines
973 B
PHP

<?php
namespace tests\Integration\Domain\RequestManagement\Entity;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Infinito\Domain\RequestManagement\Entity\RequestedEntityServiceInterface;
use Infinito\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(RequestedEntityServiceInterface::class);
}
public function testClassAccessors(): void
{
$class = AbstractSource::class;
$this->assertNull($this->requestedEntityService->setClass($class));
$this->assertEquals($class, $this->requestedEntityService->getClass());
}
}