aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Comments/FakeManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Comments/FakeManager.php')
-rw-r--r--tests/lib/Comments/FakeManager.php19
1 files changed, 15 insertions, 4 deletions
diff --git a/tests/lib/Comments/FakeManager.php b/tests/lib/Comments/FakeManager.php
index 5406df96a96..15efed5e7dc 100644
--- a/tests/lib/Comments/FakeManager.php
+++ b/tests/lib/Comments/FakeManager.php
@@ -1,5 +1,10 @@
<?php
+/**
+ * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
namespace Test\Comments;
use OC\Comments\Comment;
@@ -22,7 +27,7 @@ class FakeManager implements ICommentsManager {
$objectId,
$limit = 0,
$offset = 0,
- \DateTime $notOlderThan = null
+ ?\DateTime $notOlderThan = null,
) {
}
@@ -32,7 +37,8 @@ class FakeManager implements ICommentsManager {
int $lastKnownCommentId,
string $sortDirection = 'asc',
int $limit = 30,
- bool $includeLastKnown = false
+ bool $includeLastKnown = false,
+ string $topmostParentId = '',
): array {
return [];
}
@@ -44,12 +50,13 @@ class FakeManager implements ICommentsManager {
int $lastKnownCommentId,
string $sortDirection = 'asc',
int $limit = 30,
- bool $includeLastKnown = false
+ bool $includeLastKnown = false,
+ string $topmostParentId = '',
): array {
return [];
}
- public function getNumberOfCommentsForObject($objectType, $objectId, \DateTime $notOlderThan = null, $verb = '') {
+ public function getNumberOfCommentsForObject($objectType, $objectId, ?\DateTime $notOlderThan = null, $verb = '') {
}
public function search(string $search, string $objectType, string $objectId, string $verb, int $offset, int $limit = 50): array {
@@ -141,4 +148,8 @@ class FakeManager implements ICommentsManager {
public function getLastCommentDateByActor(string $objectType, string $objectId, string $verb, string $actorType, array $actors): array {
return [];
}
+
+ public function deleteCommentsExpiredAtObject(string $objectType, string $objectId = ''): bool {
+ return true;
+ }
}