diff options
Diffstat (limited to 'tests/lib/comments/fakefactory.php')
-rw-r--r-- | tests/lib/comments/fakefactory.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/lib/comments/fakefactory.php b/tests/lib/comments/fakefactory.php new file mode 100644 index 00000000000..202b02f6411 --- /dev/null +++ b/tests/lib/comments/fakefactory.php @@ -0,0 +1,22 @@ +<?php + +/** + * Class Test_Comments_FakeFactory + * + * this class does not contain any tests. It's sole purpose is to return + * a mock of \OCP\Comments\ICommentsManager when getManager() is called. + * For mock creation and auto-loading it extends Test\TestCase. I am, uh, really + * sorry for this hack. + */ +class Test_Comments_FakeFactory extends Test\TestCase implements \OCP\Comments\ICommentsManagerFactory { + + public function testNothing() { + // If there would not be at least one test, phpunit would scream failure + // So we have one and skip it. + $this->markTestSkipped(); + } + + public function getManager() { + return $this->getMock('\OCP\Comments\ICommentsManager'); + } +} |