mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2026-10-30 09:12:09 +00:00
Reduced complexity of constructor
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user