mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Renamed domain RequestManagement to Request
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace tests\Integration\Domain\Request\Action;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use Infinito\Domain\Request\Action\RequestedActionServiceInterface;
|
||||
use Infinito\DBAL\Types\ActionType;
|
||||
use Infinito\Domain\Request\Entity\LazyRequestedEntity;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
class RequestedActionServiceIntegrationTest extends KernelTestCase
|
||||
{
|
||||
/**
|
||||
* @var RequestedActionServiceInterface
|
||||
*/
|
||||
private $requestedActionService;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \PHPUnit\Framework\TestCase::setUp()
|
||||
*/
|
||||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
$this->requestedActionService = self::$container->get(RequestedActionServiceInterface::class);
|
||||
}
|
||||
|
||||
public function testActionAccessors(): void
|
||||
{
|
||||
$actionType = ActionType::EXECUTE;
|
||||
$this->assertNull($this->requestedActionService->setActionType($actionType));
|
||||
$this->assertEquals($actionType, $this->requestedActionService->getActionType());
|
||||
}
|
||||
|
||||
public function testLazyRequestedEntity(): void
|
||||
{
|
||||
$this->assertInstanceOf(LazyRequestedEntity::class, $this->requestedActionService->getRequestedEntity());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user