mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Renamed ActionDAOService to ActionDependenciesDAOService
This commit is contained in:
@@ -4,7 +4,7 @@ namespace tests\Unit\Domain\ActionManagement;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Infinito\Domain\ActionManagement\ActionFactoryService;
|
||||
use Infinito\Domain\ActionManagement\ActionDAOServiceInterface;
|
||||
use Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface;
|
||||
use Infinito\Domain\ActionManagement\ActionInterface;
|
||||
use Infinito\Domain\RequestManagement\Action\RequestedAction;
|
||||
use Infinito\Domain\RequestManagement\Right\RequestedRight;
|
||||
@@ -25,7 +25,7 @@ class ActionFactoryServiceTest extends TestCase
|
||||
$userSourceDirector = $this->createMock(UserSourceDirectorInterface::class);
|
||||
$requestedUser = new RequestedUser($userSourceDirector, $requestedRight);
|
||||
$requestedAction = new RequestedAction($requestedUser);
|
||||
$actionService = $this->createMock(ActionDAOServiceInterface::class);
|
||||
$actionService = $this->createMock(ActionDependenciesDAOServiceInterface::class);
|
||||
$actionService->method('getRequestedAction')->willReturn($requestedAction);
|
||||
$actionFactoryService = new ActionFactoryService($actionService);
|
||||
$requestedAction->setLayer($layer);
|
||||
|
@@ -3,12 +3,12 @@
|
||||
namespace tests\Unit\Domain\ActionManagement;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Infinito\Domain\ActionManagement\ActionDAOService;
|
||||
use Infinito\Domain\ActionManagement\ActionDependenciesDAOService;
|
||||
use Infinito\Domain\RequestManagement\Action\RequestedActionInterface;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\HttpFoundation\RequestStack;
|
||||
use Infinito\Domain\RepositoryManagement\LayerRepositoryFactoryServiceInterface;
|
||||
use Infinito\Domain\ActionManagement\ActionDAOServiceInterface;
|
||||
use Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface;
|
||||
use Infinito\Repository\RepositoryInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Infinito\Domain\RequestManagement\Entity\RequestedEntityInterface;
|
||||
@@ -50,7 +50,7 @@ class ActionServiceTest extends TestCase
|
||||
private $layerRepositoryFactoryService;
|
||||
|
||||
/**
|
||||
* @var ActionDAOServiceInterface
|
||||
* @var ActionDependenciesDAOServiceInterface
|
||||
*/
|
||||
private $actionService;
|
||||
|
||||
@@ -84,7 +84,7 @@ class ActionServiceTest extends TestCase
|
||||
$this->requestStack = $this->createMock(RequestStack::class);
|
||||
$this->layerRepositoryFactoryService = $this->createMock(LayerRepositoryFactoryServiceInterface::class);
|
||||
$this->entityManager = $this->createMock(EntityManagerInterface::class);
|
||||
$this->actionService = new ActionDAOService($this->requestedActionService, $this->secureRequestedRightCheckerService, $this->requestStack, $this->layerRepositoryFactoryService, $this->requestedActionFormBuilderService, $this->entityManager);
|
||||
$this->actionService = new ActionDependenciesDAOService($this->requestedActionService, $this->secureRequestedRightCheckerService, $this->requestStack, $this->layerRepositoryFactoryService, $this->requestedActionFormBuilderService, $this->entityManager);
|
||||
}
|
||||
|
||||
public function testIsRequestedActionSecure(): void
|
||||
|
@@ -5,7 +5,7 @@ namespace tests\Unit\Domain\ActionManagement\Read;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Infinito\Domain\ActionManagement\ActionInterface;
|
||||
use Infinito\Domain\ActionManagement\AbstractAction;
|
||||
use Infinito\Domain\ActionManagement\ActionDAOServiceInterface;
|
||||
use Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use Infinito\Exception\NotValidByFormException;
|
||||
|
||||
@@ -20,13 +20,13 @@ class AbstractActionTest extends TestCase
|
||||
private $action;
|
||||
|
||||
/**
|
||||
* @var ActionDAOServiceInterface|MockObject
|
||||
* @var ActionDependenciesDAOServiceInterface|MockObject
|
||||
*/
|
||||
private $actionService;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->actionService = $this->createMock(ActionDAOServiceInterface::class);
|
||||
$this->actionService = $this->createMock(ActionDependenciesDAOServiceInterface::class);
|
||||
$this->action = new class($this->actionService) extends AbstractAction {
|
||||
public $isSecure;
|
||||
public $validByForm;
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user