aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/cache/scanner.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/files/cache/scanner.php')
-rw-r--r--tests/lib/files/cache/scanner.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/files/cache/scanner.php b/tests/lib/files/cache/scanner.php
index f784a82dada..c53da92727c 100644
--- a/tests/lib/files/cache/scanner.php
+++ b/tests/lib/files/cache/scanner.php
@@ -112,7 +112,8 @@ class Scanner extends \UnitTestCase {
function tearDown() {
$ids = $this->cache->getAll();
- \OC\Files\Cache\Permissions::removeMultiple($ids, \OC_User::getUser());
+ $permissionsCache = $this->storage->getPermissionsCache();
+ $permissionsCache->removeMultiple($ids, \OC_User::getUser());
$this->cache->clear();
}
}