]> source.dussan.org Git - nextcloud-server.git/commitdiff
last change of OC_Config to the proper interface in tests/
authorMorris Jobke <hey@morrisjobke.de>
Thu, 3 Dec 2015 13:03:05 +0000 (14:03 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 3 Dec 2015 13:03:05 +0000 (14:03 +0100)
tests/lib/files/filesystem.php

index 6d48a4a47fccb4cdc31fac108727da039c78ef35..c5ebbdd1a2d190024bb105c4360a873fa6e73d53 100644 (file)
@@ -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() {