aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Notification
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-11-08 15:56:39 +0100
committerJoas Schilling <coding@schilljs.com>2016-11-09 08:52:07 +0100
commit706b5c3fb6e9d911c147c92fc768df86990d09ea (patch)
tree0b7f8d67289ee4d7e667a85c92a662097812f6d2 /tests/lib/Notification
parent05cf1dab4ca7d69a837c2c9e890f078cef76c744 (diff)
downloadnextcloud-server-706b5c3fb6e9d911c147c92fc768df86990d09ea.tar.gz
nextcloud-server-706b5c3fb6e9d911c147c92fc768df86990d09ea.zip
Use a php class for the definitions to avoid loading problems
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/Notification')
-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() {