summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-10-07 13:08:02 +0200
committerGitHub <noreply@github.com>2020-10-07 13:08:02 +0200
commit3b82c6cc849f9b0f23d15aebc8dc280fbbd4d8ef (patch)
tree7b97b59d3412129b6855c91ff4a719793c9688ac /tests
parent4e14c181920d5668e507b852b560a48dd5a867e2 (diff)
parent9f99f859a18c3882b6318e668eb3e5c08f3edebb (diff)
downloadnextcloud-server-3b82c6cc849f9b0f23d15aebc8dc280fbbd4d8ef.tar.gz
nextcloud-server-3b82c6cc849f9b0f23d15aebc8dc280fbbd4d8ef.zip
Merge pull request #23184 from nextcloud/bugfix/noid/make-sure-getUsersFavoritingObject-can-be-run-without-a-user
Make sure getUsersFavoritingObject can be run without a user
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/TagsTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/TagsTest.php b/tests/lib/TagsTest.php
index 69c2833433d..f6acc662424 100644
--- a/tests/lib/TagsTest.php
+++ b/tests/lib/TagsTest.php
@@ -61,7 +61,7 @@ class TagsTest extends \Test\TestCase {
$this->objectType = $this->getUniqueID('type_');
$this->tagMapper = new \OC\Tagging\TagMapper(\OC::$server->getDatabaseConnection());
- $this->tagMgr = new \OC\TagManager($this->tagMapper, $this->userSession);
+ $this->tagMgr = new \OC\TagManager($this->tagMapper, $this->userSession, \OC::$server->getDatabaseConnection());
}
protected function tearDown(): void {
@@ -78,7 +78,7 @@ class TagsTest extends \Test\TestCase {
->expects($this->any())
->method('getUser')
->willReturn(null);
- $this->tagMgr = new \OC\TagManager($this->tagMapper, $this->userSession);
+ $this->tagMgr = new \OC\TagManager($this->tagMapper, $this->userSession, \OC::$server->getDatabaseConnection());
$this->assertNull($this->tagMgr->load($this->objectType));
}