Fix files_sharing CacheTests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-08-09 16:15:27 +02:00
parent 1ea7f14f0a
commit c81e79f8b9
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ class CacheTest extends TestCase {
$id2 = $this->sharedCache->get('subdir/another too.txt')['fileid']; $id2 = $this->sharedCache->get('subdir/another too.txt')['fileid'];
$id3 = $this->sharedCache->get('subdir/not a text file.xml')['fileid']; $id3 = $this->sharedCache->get('subdir/not a text file.xml')['fileid'];
$id4 = $this->sharedCache->get('subdir/another.txt')['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, 'tag1');
$tagManager->tagAs($id1, 'tag2'); $tagManager->tagAs($id1, 'tag2');
$tagManager->tagAs($id2, 'tag1'); $tagManager->tagAs($id2, 'tag1');
@ -285,7 +285,7 @@ class CacheTest extends TestCase {
$this->sharedCache->get('subdir/emptydir')['fileid'], $this->sharedCache->get('subdir/emptydir')['fileid'],
$this->sharedCache->get('subdir/emptydir2')['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) { foreach ($allIds as $id) {
$tagManager->tagAs($id, 'tag1'); $tagManager->tagAs($id, 'tag1');
} }