From 9f99f859a18c3882b6318e668eb3e5c08f3edebb Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 5 Oct 2020 14:57:13 +0200 Subject: Make sure getUsersFavoritingObject can be run without a user Signed-off-by: Joas Schilling --- tests/lib/TagsTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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)); } -- cgit v1.2.3