From c81e79f8b9c5ddd6dd40b4ecdc43ad3c18810dc9 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 9 Aug 2017 16:15:27 +0200 Subject: Fix files_sharing CacheTests Signed-off-by: Roeland Jago Douma --- apps/files_sharing/tests/CacheTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_sharing/tests/CacheTest.php b/apps/files_sharing/tests/CacheTest.php index 26ba5b21e46..82f4ad62f67 100644 --- a/apps/files_sharing/tests/CacheTest.php +++ b/apps/files_sharing/tests/CacheTest.php @@ -243,7 +243,7 @@ class CacheTest extends TestCase { $id2 = $this->sharedCache->get('subdir/another too.txt')['fileid']; $id3 = $this->sharedCache->get('subdir/not a text file.xml')['fileid']; $id4 = $this->sharedCache->get('subdir/another.txt')['fileid']; - $tagManager = \OC::$server->getTagManager()->load('files', null, null, $userId); + $tagManager = \OC::$server->getTagManager()->load('files', [], false, $userId); $tagManager->tagAs($id1, 'tag1'); $tagManager->tagAs($id1, 'tag2'); $tagManager->tagAs($id2, 'tag1'); @@ -285,7 +285,7 @@ class CacheTest extends TestCase { $this->sharedCache->get('subdir/emptydir')['fileid'], $this->sharedCache->get('subdir/emptydir2')['fileid'], ); - $tagManager = \OC::$server->getTagManager()->load('files', null, null, $userId); + $tagManager = \OC::$server->getTagManager()->load('files', [], false, $userId); foreach ($allIds as $id) { $tagManager->tagAs($id, 'tag1'); } -- cgit v1.2.3