Solved function tests

This commit is contained in:
Kevin Frantz
2019-04-13 21:22:16 +02:00
parent 74aad46978
commit 9530944d17
5 changed files with 39 additions and 12 deletions

View File

@@ -13,6 +13,7 @@ use Infinito\Domain\DataAccessManagement\ActionsResultsDAOService;
use Infinito\Domain\DataAccessManagement\ActionsViewsDAOService;
use Infinito\Entity\EntityInterface;
use Infinito\Logic\Result\ResultInterface;
use Infinito\Domain\FormManagement\RequestedActionFormBuilderServiceInterface;
/**
* @author kevinfrantz
@@ -29,6 +30,11 @@ class ActionViewsDAOServiceIntegrationTest extends TestCase
*/
private $actionsResultsDAO;
/**
* @var RequestedActionFormBuilderServiceInterface
*/
private $requestedActionFormBuilderService;
/**
* {@inheritdoc}
*
@@ -36,8 +42,9 @@ class ActionViewsDAOServiceIntegrationTest extends TestCase
*/
public function setUp(): void
{
$this->requestedActionFormBuilderService = $this->createMock(RequestedActionFormBuilderServiceInterface::class);
$this->actionsResultsDAO = new ActionsResultsDAOService();
$this->actionsViewsDAO = new ActionsViewsDAOService($this->actionsResultsDAO);
$this->actionsViewsDAO = new ActionsViewsDAOService($this->actionsResultsDAO, $this->requestedActionFormBuilderService);
}
public function testNotValidChoiceSetException(): void