aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2024-06-27 12:40:06 +0200
committerGitHub <noreply@github.com>2024-06-27 12:40:06 +0200
commitff499a6baa49916898f01d1cb8573883a87dca3f (patch)
tree1ea884c74bfa7c1c0c55528594e2c377877e1873 /tests/lib
parent2482688fa09d7dc477ad0d23049d55b62d5b3d6c (diff)
parent9713dd3fa990c5dabfa07b1049ac1a8a0f1edb27 (diff)
downloadnextcloud-server-ff499a6baa49916898f01d1cb8573883a87dca3f.tar.gz
nextcloud-server-ff499a6baa49916898f01d1cb8573883a87dca3f.zip
Merge pull request #45951 from nextcloud/chore/comments-event-legacy
chore: Move comments event handler to use proper event dispatcher
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/Comments/ManagerTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php
index 88ce2f1438f..359be2696c6 100644
--- a/tests/lib/Comments/ManagerTest.php
+++ b/tests/lib/Comments/ManagerTest.php
@@ -14,6 +14,7 @@ use OCP\Comments\IComment;
use OCP\Comments\ICommentsEventHandler;
use OCP\Comments\ICommentsManager;
use OCP\Comments\NotFoundException;
+use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Folder;
use OCP\Files\IRootFolder;
use OCP\IConfig;
@@ -91,6 +92,7 @@ class ManagerTest extends TestCase {
new EmojiHelper($this->connection),
$this->createMock(IInitialStateService::class),
$this->rootFolder,
+ $this->createMock(IEventDispatcher::class),
);
}
@@ -758,6 +760,7 @@ class ManagerTest extends TestCase {
new EmojiHelper($this->connection),
$this->createMock(IInitialStateService::class),
$this->rootFolder,
+ $this->createMock(IEventDispatcher::class)
);
// just to make sure they are really set, with correct actor data
@@ -804,6 +807,7 @@ class ManagerTest extends TestCase {
new EmojiHelper($this->connection),
$this->createMock(IInitialStateService::class),
$this->rootFolder,
+ $this->createMock(IEventDispatcher::class)
);
$deleted = $manager->deleteCommentsExpiredAtObject('files');