aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulius Knorr <jus@bitgrid.net>2024-12-12 15:18:47 +0100
committerGitHub <noreply@github.com>2024-12-12 15:18:47 +0100
commitcba556d641d07218916e97be3e94d17cad0406fb (patch)
treeb1fd40f6fa31598c83520f3367246fd9180f5c19 /tests
parent290c3472295c704d89a22b87d885e0eb9f523633 (diff)
parenteb61a3ae4480d8d07210e91fc2037e2887f9663e (diff)
downloadnextcloud-server-cba556d641d07218916e97be3e94d17cad0406fb.tar.gz
nextcloud-server-cba556d641d07218916e97be3e94d17cad0406fb.zip
Merge pull request #48612 from nextcloud/fix/activity-log-for-favorites-in-dav
add activity logging for favorites in dav
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/TagsTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/TagsTest.php b/tests/lib/TagsTest.php
index 18768970954..7483ed15e6b 100644
--- a/tests/lib/TagsTest.php
+++ b/tests/lib/TagsTest.php
@@ -7,6 +7,7 @@
namespace Test;
+use OCP\EventDispatcher\IEventDispatcher;
use OCP\IDBConnection;
use OCP\IUser;
use OCP\IUserSession;
@@ -48,7 +49,7 @@ class TagsTest extends \Test\TestCase {
$this->objectType = $this->getUniqueID('type_');
$this->tagMapper = new \OC\Tagging\TagMapper(\OC::$server->get(IDBConnection::class));
- $this->tagMgr = new \OC\TagManager($this->tagMapper, $this->userSession, \OC::$server->get(IDBConnection::class), \OC::$server->get(LoggerInterface::class));
+ $this->tagMgr = new \OC\TagManager($this->tagMapper, $this->userSession, \OC::$server->get(IDBConnection::class), \OC::$server->get(LoggerInterface::class), \OC::$server->get(IEventDispatcher::class));
}
protected function tearDown(): void {
@@ -65,7 +66,7 @@ class TagsTest extends \Test\TestCase {
->expects($this->any())
->method('getUser')
->willReturn(null);
- $this->tagMgr = new \OC\TagManager($this->tagMapper, $this->userSession, \OC::$server->getDatabaseConnection(), \OC::$server->get(LoggerInterface::class));
+ $this->tagMgr = new \OC\TagManager($this->tagMapper, $this->userSession, \OC::$server->getDatabaseConnection(), \OC::$server->get(LoggerInterface::class), \OC::$server->get(IEventDispatcher::class));
$this->assertNull($this->tagMgr->load($this->objectType));
}