Implemented ActionServiceIntegrationTest

This commit is contained in:
Kevin Frantz 2019-02-16 10:27:28 +01:00
parent 2aebdd603c
commit 0bdcdd7610
2 changed files with 36 additions and 0 deletions

View File

@ -58,4 +58,6 @@ services:
App\Domain\FormManagement\RequestedActionFormBuilderService:
public: true
App\Domain\SecureManagement\SecureRequestedRightCheckerService:
public: true
App\Domain\ActionManagement\ActionService:
public: true

View File

@ -0,0 +1,34 @@
<?php
namespace tests\Integration\Domain\ActionManagement;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use App\Domain\ActionManagement\ActionServiceInterface;
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());
}
}