mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
register CommentsManager service, allow override, document in config.sample.php don't insert autoincrement ids in tests, because of dislikes from oracle and pgsql specify timezone in null date only accepts strings for ID parameter that can be converted to int replace forgotten hardcoded IDs in tests react on deleted users react on file deletion Postgresql compatibility lastInsertId needs *PREFIX* with the table name do not listen for file deletion, because it is not reliable (trashbin, external storages) add runtime cache for comments
22 lines
679 B
PHP
22 lines
679 B
PHP
<?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');
|
|
}
|
|
}
|