summaryrefslogtreecommitdiffstats
path: root/tests/lib/files
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-12-03 09:11:21 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-12-03 09:38:41 +0100
commite9c8f82fc570e40fb0c3723e2ea4780a6e5e3876 (patch)
treeb472ea1ca9c792deec026718c54ea76f5d4f0b5d /tests/lib/files
parentc6bda8d6caf910cecc15adb0ef81ec96eafdfada (diff)
downloadnextcloud-server-e9c8f82fc570e40fb0c3723e2ea4780a6e5e3876.tar.gz
nextcloud-server-e9c8f82fc570e40fb0c3723e2ea4780a6e5e3876.zip
Replace OC_Config in tests with IConfig calls
Diffstat (limited to 'tests/lib/files')
-rw-r--r--tests/lib/files/etagtest.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/lib/files/etagtest.php b/tests/lib/files/etagtest.php
index 7fbeae88820..c214a3d4da6 100644
--- a/tests/lib/files/etagtest.php
+++ b/tests/lib/files/etagtest.php
@@ -37,16 +37,17 @@ class EtagTest extends \Test\TestCase {
\OCP\Share::registerBackend('file', 'OC_Share_Backend_File');
\OCP\Share::registerBackend('folder', 'OC_Share_Backend_Folder', 'file');
- $this->datadir = \OC_Config::getValue('datadirectory');
+ $config = \OC::$server->getConfig();
+ $this->datadir = $config->getSystemValue('datadirectory');
$this->tmpDir = \OC_Helper::tmpFolder();
- \OC_Config::setValue('datadirectory', $this->tmpDir);
+ $config->setSystemValue('datadirectory', $this->tmpDir);
$this->userBackend = new \Test\Util\User\Dummy();
\OC_User::useBackend($this->userBackend);
}
protected function tearDown() {
- \OC_Config::setValue('datadirectory', $this->datadir);
+ \OC::$server->getConfig()->setSystemValue('datadirectory', $this->datadir);
$this->logout();
parent::tearDown();