From d3692c32837a54198f8f8a00713d93dd64db8e61 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 3 Dec 2015 17:23:22 +0100 Subject: [PATCH] namespaces for tests --- tests/lib/comments/comment.php | 6 +++++- tests/lib/comments/fakefactory.php | 13 ++++++------- tests/lib/comments/manager.php | 5 ++++- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/tests/lib/comments/comment.php b/tests/lib/comments/comment.php index 790aca42967..f00dfd527f1 100644 --- a/tests/lib/comments/comment.php +++ b/tests/lib/comments/comment.php @@ -1,6 +1,10 @@ getMock('\OCP\Comments\ICommentsManager'); @@ -20,7 +19,7 @@ class Test_Comments_FakeFactory extends Test\TestCase implements \OCP\Comments\I $managerMock = $this->getMock('\OCP\Comments\ICommentsManager'); - $config->setSystemValue('comments.managerFactory', 'Test_Comments_FakeFactory'); + $config->setSystemValue('comments.managerFactory', '\Test\Comments\Test_Comments_FakeFactory'); $manager = \OC::$server->getCommentsManager(); $this->assertEquals($managerMock, $manager); diff --git a/tests/lib/comments/manager.php b/tests/lib/comments/manager.php index 3543393308b..d5c415c250a 100644 --- a/tests/lib/comments/manager.php +++ b/tests/lib/comments/manager.php @@ -1,13 +1,16 @@