summaryrefslogtreecommitdiffstats
path: root/tests/lib/comments
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-01-19 16:17:49 +0100
committerVincent Petry <pvince81@owncloud.com>2016-01-20 16:36:10 +0100
commit899f9bd113304d77b865653768450f6013824553 (patch)
tree9861ca8e2d64e9dc373a330f7342b424172cbeb1 /tests/lib/comments
parentdd733d89256e0a2d1f7f4f96ac46b5a7bfbff984 (diff)
downloadnextcloud-server-899f9bd113304d77b865653768450f6013824553.tar.gz
nextcloud-server-899f9bd113304d77b865653768450f6013824553.zip
Allow custom implementation of system tag managers
Added config.php option to replace the default implementation of system tag manager and system tag object mapper. Also adjusted the comments manager factory to inject the server container
Diffstat (limited to 'tests/lib/comments')
-rw-r--r--tests/lib/comments/fakefactory.php5
-rw-r--r--tests/lib/comments/manager.php2
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/lib/comments/fakefactory.php b/tests/lib/comments/fakefactory.php
index 837bcb10585..ff8dfd3a259 100644
--- a/tests/lib/comments/fakefactory.php
+++ b/tests/lib/comments/fakefactory.php
@@ -2,11 +2,16 @@
namespace Test\Comments;
+use OCP\IServerContainer;
+
/**
* Class FakeFactory
*/
class FakeFactory implements \OCP\Comments\ICommentsManagerFactory {
+ public function __construct(IServerContainer $serverContainer) {
+ }
+
public function getManager() {
return new FakeManager();
}
diff --git a/tests/lib/comments/manager.php b/tests/lib/comments/manager.php
index 248de683253..cc2eebb64d1 100644
--- a/tests/lib/comments/manager.php
+++ b/tests/lib/comments/manager.php
@@ -50,7 +50,7 @@ class Test_Comments_Manager extends TestCase
}
protected function getManager() {
- $factory = new \OC\Comments\ManagerFactory();
+ $factory = new \OC\Comments\ManagerFactory(\OC::$server);
return $factory->getManager();
}