From 1276dddc37384c4738f9456364365ed16c2e4dfa Mon Sep 17 00:00:00 2001 From: steav Date: Mon, 23 Jul 2018 23:45:56 +0200 Subject: [PATCH] Fix failing CardServiceTest Signed-off-by: steav --- tests/unit/Service/CardServiceTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/Service/CardServiceTest.php b/tests/unit/Service/CardServiceTest.php index 0822bab3d..95de77e50 100644 --- a/tests/unit/Service/CardServiceTest.php +++ b/tests/unit/Service/CardServiceTest.php @@ -43,6 +43,8 @@ class CardServiceTest extends TestCase { private $stackMapper; /** @var PermissionService|\PHPUnit\Framework\MockObject\MockObject */ private $permissionService; + /** @var NotificationHelper */ + private $notificationHelper; /** @var AssignedUsersMapper|\PHPUnit\Framework\MockObject\MockObject */ private $assignedUsersMapper; /** @var BoardService|\PHPUnit\Framework\MockObject\MockObject */ @@ -54,9 +56,10 @@ class CardServiceTest extends TestCase { $this->stackMapper = $this->createMock(StackMapper::class); $this->permissionService = $this->createMock(PermissionService::class); $this->boardService = $this->createMock(BoardService::class); + $this->notificationHelper = $this->createMock(NotificationHelper::class); $this->assignedUsersMapper = $this->createMock(AssignedUsersMapper::class); $this->attachmentService = $this->createMock(AttachmentService::class); - $this->cardService = new CardService($this->cardMapper, $this->stackMapper, $this->permissionService, $this->boardService, $this->assignedUsersMapper, $this->attachmentService); + $this->cardService = new CardService($this->cardMapper, $this->stackMapper, $this->permissionService, $this->boardService, $this->notificationHelper, $this->assignedUsersMapper, $this->attachmentService); } public function testFind() {