Fix files_sharing CacheTests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
1ea7f14f0a
commit
c81e79f8b9
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue