Reduced complexity of constructor

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

View File

@@ -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);