Validated that LazyRequestedEntity is loaded in RequestedActionService

This commit is contained in:
Kevin Frantz 2019-02-18 19:01:50 +01:00
parent 06b679db87
commit 3dbb71f885

View File

@ -5,6 +5,7 @@ namespace tests\Integration\Domain\RequestManagement\Action;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Infinito\Domain\RequestManagement\Action\RequestedActionServiceInterface;
use Infinito\DBAL\Types\ActionType;
use Infinito\Domain\RequestManagement\Entity\LazyRequestedEntity;
/**
* @author kevinfrantz
@ -33,4 +34,9 @@ class RequestedActionServiceIntegrationTest extends KernelTestCase
$this->assertNull($this->requestedActionService->setActionType($actionType));
$this->assertEquals($actionType, $this->requestedActionService->getActionType());
}
public function testLazyRequestedEntity(): void
{
$this->assertInstanceOf(LazyRequestedEntity::class, $this->requestedActionService->getRequestedEntity());
}
}