2019-02-16 10:27:28 +01:00
|
|
|
<?php
|
|
|
|
|
2019-05-30 16:03:44 +02:00
|
|
|
namespace tests\Integration\Domain\Action;
|
2019-02-16 10:27:28 +01:00
|
|
|
|
|
|
|
use Doctrine\ORM\EntityManagerInterface;
|
2020-04-02 21:13:35 +02:00
|
|
|
use Infinito\Domain\Action\ActionDependenciesDAOServiceInterface;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
2019-02-16 10:27:28 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
|
|
|
class ActionServiceIntegrationTest extends KernelTestCase
|
|
|
|
{
|
|
|
|
/**
|
2019-04-14 14:28:08 +02:00
|
|
|
* @var ActionDependenciesDAOServiceInterface
|
2019-02-16 10:27:28 +01:00
|
|
|
*/
|
|
|
|
private $actionService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*
|
|
|
|
* @see \PHPUnit\Framework\TestCase::setUp()
|
|
|
|
*/
|
|
|
|
public function setUp(): void
|
|
|
|
{
|
|
|
|
self::bootKernel();
|
2019-04-14 14:28:08 +02:00
|
|
|
$this->actionService = self::$container->get(ActionDependenciesDAOServiceInterface::class);
|
2019-02-16 10:27:28 +01:00
|
|
|
}
|
|
|
|
|
2019-04-14 14:12:09 +02:00
|
|
|
public function testEntityManager(): void
|
2019-02-16 10:27:28 +01:00
|
|
|
{
|
|
|
|
$this->assertInstanceOf(EntityManagerInterface::class, $this->actionService->getEntityManager());
|
|
|
|
}
|
|
|
|
}
|