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

@@ -3,7 +3,7 @@
namespace tests\Integration\Domain\ActionManagement;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Infinito\Domain\ActionManagement\ActionDAOServiceInterface;
use Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface;
use Doctrine\ORM\EntityManagerInterface;
/**
@@ -12,7 +12,7 @@ use Doctrine\ORM\EntityManagerInterface;
class ActionServiceIntegrationTest extends KernelTestCase
{
/**
* @var ActionDAOServiceInterface
* @var ActionDependenciesDAOServiceInterface
*/
private $actionService;
@@ -24,7 +24,7 @@ class ActionServiceIntegrationTest extends KernelTestCase
public function setUp(): void
{
self::bootKernel();
$this->actionService = self::$container->get(ActionDAOServiceInterface::class);
$this->actionService = self::$container->get(ActionDependenciesDAOServiceInterface::class);
}
public function testEntityManager(): void

View File

@@ -3,9 +3,9 @@
namespace Tests\Integration\Domain\ActionManagement\Create;
use Infinito\Domain\ActionManagement\Create\CreateSourceAction;
use Infinito\Domain\ActionManagement\ActionDAOService;
use Infinito\Domain\ActionManagement\ActionDependenciesDAOService;
use Infinito\Domain\ActionManagement\Create\CreateActionInterface;
use Infinito\Domain\ActionManagement\ActionDAOServiceInterface;
use Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Infinito\Entity\Source\PureSourceInterface;
use Infinito\Domain\RequestManagement\Action\RequestedActionService;
@@ -39,7 +39,7 @@ class CreateSourceActionIntegrationTest extends KernelTestCase
private $createSourceAction;
/**
* @var ActionDAOServiceInterface
* @var ActionDependenciesDAOServiceInterface
*/
private $actionService;
@@ -80,7 +80,7 @@ class CreateSourceActionIntegrationTest extends KernelTestCase
$layerRepositoryFactoryService = new LayerRepositoryFactoryService($entityManager);
$rightTransformerService = new RightTransformerService();
$secureRequestedRightChecker = new SecureRequestedRightCheckerService($rightTransformerService);
$this->actionService = new ActionDAOService($this->requestedActionService, $secureRequestedRightChecker, $this->requestStack, $layerRepositoryFactoryService, $entityFormBuilderService, $entityManager);
$this->actionService = new ActionDependenciesDAOService($this->requestedActionService, $secureRequestedRightChecker, $this->requestStack, $layerRepositoryFactoryService, $entityFormBuilderService, $entityManager);
$this->createSourceAction = new CreateSourceAction($this->actionService);
}