aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2024-06-18 14:11:32 +0200
committerJulius Härtl <jus@bitgrid.net>2024-06-26 18:13:07 +0200
commit9713dd3fa990c5dabfa07b1049ac1a8a0f1edb27 (patch)
treea03f5b678a4670c8d49f62e852c1e3a4c3a36bfe /tests
parent9b05759c03f304a518b37cabfcc2fd7cc4fa4fef (diff)
downloadnextcloud-server-9713dd3fa990c5dabfa07b1049ac1a8a0f1edb27.tar.gz
nextcloud-server-9713dd3fa990c5dabfa07b1049ac1a8a0f1edb27.zip
chore: Move comments event handler to use proper event dispatcher
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-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');