2019-02-16 10:27:28 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace tests\Integration\Domain\ActionManagement;
|
|
|
|
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
2019-02-17 14:33:19 +01:00
|
|
|
use Infinito\Domain\ActionManagement\ActionServiceInterface;
|
2019-02-16 10:27:28 +01:00
|
|
|
use Doctrine\ORM\EntityManagerInterface;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
|
|
|
class ActionServiceIntegrationTest extends KernelTestCase
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var ActionServiceInterface
|
|
|
|
*/
|
|
|
|
private $actionService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*
|
|
|
|
* @see \PHPUnit\Framework\TestCase::setUp()
|
|
|
|
*/
|
|
|
|
public function setUp(): void
|
|
|
|
{
|
|
|
|
self::bootKernel();
|
|
|
|
$this->actionService = self::$container->get(ActionServiceInterface::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testEnityManager(): void
|
|
|
|
{
|
|
|
|
$this->assertInstanceOf(EntityManagerInterface::class, $this->actionService->getEntityManager());
|
|
|
|
}
|
|
|
|
}
|