From 65650691b358978db50f173440e01313b7e30c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20R=C3=B6hrl?= Date: Fri, 16 Oct 2020 12:52:47 +0200 Subject: [PATCH] test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakob Röhrl --- tests/unit/Service/StackServiceTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/Service/StackServiceTest.php b/tests/unit/Service/StackServiceTest.php index d288d7a9f..4d81ee23d 100644 --- a/tests/unit/Service/StackServiceTest.php +++ b/tests/unit/Service/StackServiceTest.php @@ -33,6 +33,7 @@ use OCA\Deck\Db\Label; use OCA\Deck\Db\LabelMapper; use OCA\Deck\Db\Stack; use OCA\Deck\Db\StackMapper; +use OCA\Deck\Db\AssignedLabelsMapper; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use \Test\TestCase; use OCP\IL10N; @@ -73,6 +74,7 @@ class StackServiceTest extends TestCase { private $eventDispatcher; private $l10n; private $userId; + private $assignedLabelsMapper; public function setUp(): void { parent::setUp(); @@ -90,6 +92,7 @@ class StackServiceTest extends TestCase { $this->eventDispatcher = $this->createMock(EventDispatcherInterface::class); $this->l10n = $this->createMock(IL10N::class); $this->userId = "admin"; + $this->assignedLabelsMapper = $this->createMock(AssignedLabelsMapper::class); $this->stackService = new StackService( @@ -106,7 +109,8 @@ class StackServiceTest extends TestCase { $this->eventDispatcher, $this->changeHelper, $this->l10n, - $this->userId + $this->userId, + $this->assassignedLabelsMapper ); }