mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-18 19:09:20 +02:00
Implemented ActionServiceIntegrationTest
This commit is contained in:
parent
2aebdd603c
commit
0bdcdd7610
@ -59,3 +59,5 @@ services:
|
|||||||
public: true
|
public: true
|
||||||
App\Domain\SecureManagement\SecureRequestedRightCheckerService:
|
App\Domain\SecureManagement\SecureRequestedRightCheckerService:
|
||||||
public: true
|
public: true
|
||||||
|
App\Domain\ActionManagement\ActionService:
|
||||||
|
public: true
|
@ -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());
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user