Renamed ActionDAOService to ActionDependenciesDAOService

This commit is contained in:
Kevin Frantz
2019-04-14 14:28:08 +02:00
parent 45f92bac53
commit 8b06927936
11 changed files with 352 additions and 322 deletions

View File

@@ -5,7 +5,7 @@ namespace tests\Unit\Domain\SecureCRUDManagement\CRUD\Read;
use Doctrine\ORM\EntityManagerInterface;
use PHPUnit\Framework\TestCase;
use Infinito\Domain\ActionManagement\Read\ReadAction;
use Infinito\Domain\ActionManagement\ActionDAOServiceInterface;
use Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface;
use Infinito\Domain\ActionManagement\Read\ReadActionInterface;
use Infinito\Exception\NotSecureException;
use Infinito\Domain\RequestManagement\Action\RequestedActionInterface;
@@ -23,7 +23,7 @@ class ReadSourceActionTest extends TestCase
private $entityManager;
/**
* @var ActionDAOServiceInterface
* @var ActionDependenciesDAOServiceInterface
*/
private $actionService;
@@ -50,7 +50,7 @@ class ReadSourceActionTest extends TestCase
$this->entityManager = $this->createMock(EntityManagerInterface::class);
$this->requestedAction = $this->createMock(RequestedActionInterface::class);
$this->requestedAction->method('getRequestedEntity')->willReturn($this->requestedEntity);
$this->actionService = $this->createMock(ActionDAOServiceInterface::class);
$this->actionService = $this->createMock(ActionDependenciesDAOServiceInterface::class);
$this->actionService->method('getEntityManager')->willReturn($this->entityManager);
$this->actionService->method('getRequestedAction')->willReturn($this->requestedAction);
$this->sourceReadAction = new ReadAction($this->actionService);