nextcloud/tests/lib/comments/fakefactory.php
Vincent Petry 899f9bd113 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
2016-01-20 16:36:10 +01:00

19 lines
294 B
PHP

<?php
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();
}
}