infinito/application/symfony/tests/Integration/Domain/Action/ActionServiceIntegrationTest.php

35 lines
835 B
PHP
Raw Permalink Normal View History

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