Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-11-14 08:57:38 +0300
committerdartcafe <github@dartcafe.de>2020-11-19 10:20:52 +0300
commit6b40ed41fecef73c5ad2914a2d5c721d2c28371b (patch)
tree2b75dbef4665f7f607d856f151454a14d27526ad /tests
parentc85953b4c7cdc0ab2a7bb51b504d14db248dba22 (diff)
fix test
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Controller/PageControllerTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Unit/Controller/PageControllerTest.php b/tests/Unit/Controller/PageControllerTest.php
index fd22d3a0..232fb190 100644
--- a/tests/Unit/Controller/PageControllerTest.php
+++ b/tests/Unit/Controller/PageControllerTest.php
@@ -42,11 +42,15 @@ class PageControllerTest extends UnitTestCase {
$urlGenerator = $this->getMockBuilder('OCP\IURLGenerator')
->disableOriginalConstructor()
->getMock();
+ $notificationService = $this->getMockBuilder('OCA\Polls\Service\NotificationService')
+ ->disableOriginalConstructor()
+ ->getMock();
$this->controller = new PageController(
'polls',
$request,
- $urlGenerator
+ $urlGenerator,
+ $notificationService
);
}