Reduced complexity of constructor

This commit is contained in:
Kevin Frantz committed 2019-02-13 15:29:29 +01:00
1 parent 0ab4cee064
commit 54b0d98ef3
9 files changed
+22 -23

No files matched your search

@@ -39,7 +39,7 @@ class ActionFactoryServiceTest extends TestCase
$requestedRight = new RequestedRight();
$userSourceDirector = $this->createMock(UserSourceDirectorInterface::class);
$requestedUser = new RequestedUser($userSourceDirector, $requestedRight);
$this->requestedAction = new RequestedAction($userSourceDirector, $requestedUser);
$this->requestedAction = new RequestedAction($requestedUser);
$this->actionService = $this->createMock(ActionServiceInterface::class);
$this->actionService->method('getRequestedAction')->willReturn($this->requestedAction);
$this->actionFactoryService = new ActionFactoryService($this->actionService);