Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2022-01-27 19:07:48 +0300
committerVitor Mattos <vitor@php.rio>2022-02-03 18:52:18 +0300
commit8ec7c5c8ae5432c2ca2e738032d7d1118840c840 (patch)
tree6a2f15d4a77fe1ff09d6f42f3bbb1f38055f055f /tests
parentd635d58d19d5ab65c0be754fc32fce99672c249f (diff)
Update ICommentsManager with reaction methods
Fix psalm errors Reorder methods and remove return null Use best pattern on docblock Goals: update https://github.com/ChristophWurst/nextcloud_composer/ with reaction methods. The script https://github.com/ChristophWurst/nextcloud_composer/blob/master/build.sh only get lib/public classes Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Comments/FakeManager.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/lib/Comments/FakeManager.php b/tests/lib/Comments/FakeManager.php
index fbd13bd5193..5406df96a96 100644
--- a/tests/lib/Comments/FakeManager.php
+++ b/tests/lib/Comments/FakeManager.php
@@ -2,6 +2,7 @@
namespace Test\Comments;
+use OC\Comments\Comment;
use OCP\Comments\IComment;
use OCP\Comments\ICommentsManager;
use OCP\IUser;
@@ -61,6 +62,22 @@ class FakeManager implements ICommentsManager {
public function delete($id) {
}
+ public function getReactionComment(int $parentId, string $actorType, string $actorId, string $reaction): IComment {
+ return new Comment();
+ }
+
+ public function retrieveAllReactions(int $parentId): array {
+ return [];
+ }
+
+ public function retrieveAllReactionsWithSpecificReaction(int $parentId, string $reaction): array {
+ return [];
+ }
+
+ public function supportReactions(): bool {
+ return false;
+ }
+
public function save(IComment $comment) {
}