Fix CacheTest
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
ba7cf03daf
commit
db27bbf90d
|
@ -352,7 +352,7 @@ class CacheTest extends \Test\TestCase {
|
|||
$id4 = $this->cache->put($file4, $fileData['foo2']);
|
||||
$id5 = $this->cache->put($file5, $fileData['foo3']);
|
||||
|
||||
$tagManager = \OC::$server->getTagManager()->load('files', null, null, $userId);
|
||||
$tagManager = \OC::$server->getTagManager()->load('files', [], false, $userId);
|
||||
$this->assertTrue($tagManager->tagAs($id1, 'tag1'));
|
||||
$this->assertTrue($tagManager->tagAs($id1, 'tag2'));
|
||||
$this->assertTrue($tagManager->tagAs($id2, 'tag2'));
|
||||
|
@ -422,7 +422,7 @@ class CacheTest extends \Test\TestCase {
|
|||
$id4 = $this->cache->put($file4, $fileData['foo2']);
|
||||
$id5 = $this->cache->put($file5, $fileData['foo3']);
|
||||
|
||||
$tagManager = \OC::$server->getTagManager()->load('files', null, null, $userId);
|
||||
$tagManager = \OC::$server->getTagManager()->load('files', [], false, $userId);
|
||||
$this->assertTrue($tagManager->tagAs($id1, 'tag1'));
|
||||
$this->assertTrue($tagManager->tagAs($id1, 'tag2'));
|
||||
$this->assertTrue($tagManager->tagAs($id2, 'tag2'));
|
||||
|
|
Loading…
Reference in New Issue