From 9713dd3fa990c5dabfa07b1049ac1a8a0f1edb27 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Tue, 18 Jun 2024 14:11:32 +0200 Subject: chore: Move comments event handler to use proper event dispatcher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- tests/lib/Comments/ManagerTest.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/lib') 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'); -- cgit v1.2.3