aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Notification/ManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Notification/ManagerTest.php')
-rw-r--r--tests/lib/Notification/ManagerTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/Notification/ManagerTest.php b/tests/lib/Notification/ManagerTest.php
index 4410781bc31..e280838424b 100644
--- a/tests/lib/Notification/ManagerTest.php
+++ b/tests/lib/Notification/ManagerTest.php
@@ -23,6 +23,7 @@ namespace Test\Notification;
use OC\Notification\Manager;
use OCP\Notification\IManager;
+use OCP\RichObjectStrings\IValidator;
use Test\TestCase;
class ManagerTest extends TestCase {
@@ -31,7 +32,8 @@ class ManagerTest extends TestCase {
public function setUp() {
parent::setUp();
- $this->manager = new Manager();
+ $validator = $this->createMock(IValidator::class);
+ $this->manager = new Manager($validator);
}
public function testRegisterApp() {