diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-02-04 09:38:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-04 09:38:04 +0100 |
commit | 2f2538a57a1bb9aa07de439b41cca64e937f5e56 (patch) | |
tree | a81b968bbd9005937a38fea183eed1a5c5ed5cc2 /tests | |
parent | 550dfe0ef12293baf8be922e1fcc0c4f3c550b68 (diff) | |
parent | 8ec7c5c8ae5432c2ca2e738032d7d1118840c840 (diff) | |
download | nextcloud-server-2f2538a57a1bb9aa07de439b41cca64e937f5e56.tar.gz nextcloud-server-2f2538a57a1bb9aa07de439b41cca64e937f5e56.zip |
Merge pull request #30888 from nextcloud/comments-interface
Update ICommentsManager with reaction methods
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Comments/FakeManager.php | 17 |
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) { } |