summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-12-03 14:03:05 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-12-03 14:03:05 +0100
commitcbe6eeffa17415aec46852e7ff5442618ffb116b (patch)
tree2a3c489ab64f6569a8c49385e49d27ede708dd00 /tests/lib
parent542ce7dd0d5df6431c86e8e46aacad6514c027cd (diff)
downloadnextcloud-server-cbe6eeffa17415aec46852e7ff5442618ffb116b.tar.gz
nextcloud-server-cbe6eeffa17415aec46852e7ff5442618ffb116b.zip
last change of OC_Config to the proper interface in tests/
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/files/filesystem.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/lib/files/filesystem.php b/tests/lib/files/filesystem.php
index 6d48a4a47fc..c5ebbdd1a2d 100644
--- a/tests/lib/files/filesystem.php
+++ b/tests/lib/files/filesystem.php
@@ -410,10 +410,11 @@ class Filesystem extends \Test\TestCase {
public function testMountExternalCacheDir() {
$userId = $this->getUniqueID('user_');
- $oldCachePath = \OC_Config::getValue('cache_path', '');
+ $config = \OC::$server->getConfig();
+ $oldCachePath = $config->getSystemValue('cache_path', '');
// set cache path to temp dir
$cachePath = \OC_Helper::tmpFolder() . '/extcache';
- \OC_Config::setValue('cache_path', $cachePath);
+ $config->setSystemValue('cache_path', $cachePath);
\OC_User::createUser($userId, $userId);
\OC\Files\Filesystem::initMountPoints($userId);
@@ -427,7 +428,7 @@ class Filesystem extends \Test\TestCase {
$this->assertEquals('', $internalPath);
\OC_User::deleteUser($userId);
- \OC_Config::setValue('cache_path', $oldCachePath);
+ $config->setSystemValue('cache_path', $oldCachePath);
}
public function testRegisterMountProviderAfterSetup() {