From 706b5c3fb6e9d911c147c92fc768df86990d09ea Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 8 Nov 2016 15:56:39 +0100 Subject: Use a php class for the definitions to avoid loading problems Signed-off-by: Joas Schilling --- tests/lib/Notification/ManagerTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/lib/Notification') 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() { -- cgit v1.2.3