diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-05 15:57:13 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-10-06 17:49:23 +0300 |
commit | 9f99f859a18c3882b6318e668eb3e5c08f3edebb (patch) | |
tree | 60d8b0bf7163e549b861e8f4f5c423c59d26bfd9 /tests | |
parent | b186852f9d387ac3517ae62804d5b81f178376c9 (diff) |
Make sure getUsersFavoritingObject can be run without a user
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/TagsTest.php | 4 |
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)); } |