diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-13 14:25:04 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-13 14:25:04 +0100 |
commit | 8a41d05761a14292ab0457f4143bb84d237bbcbd (patch) | |
tree | f74f20625fd4e693f29431e39b7b2c69a9f06980 /tests/lib/UtilTest.php | |
parent | 1faef0c459a51a025f73f7eee46e5607ee6eedf5 (diff) | |
download | nextcloud-server-8a41d05761a14292ab0457f4143bb84d237bbcbd.tar.gz nextcloud-server-8a41d05761a14292ab0457f4143bb84d237bbcbd.zip |
Remove deprecated \OCP\Config
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/UtilTest.php')
-rw-r--r-- | tests/lib/UtilTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/UtilTest.php b/tests/lib/UtilTest.php index 16d03b049fe..037736bf00f 100644 --- a/tests/lib/UtilTest.php +++ b/tests/lib/UtilTest.php @@ -304,12 +304,12 @@ class UtilTest extends \Test\TestCase { // need to set a user id to make sure enabled apps are read from cache \OC_User::setUserId($this->getUniqueID()); - \OCP\Config::setSystemValue('defaultapp', $defaultAppConfig); + \OC::$server->getConfig()->setSystemValue('defaultapp', $defaultAppConfig); $this->assertEquals('http://localhost/' . $expectedPath, Dummy_OC_Util::getDefaultPageUrl()); // restore old state \OC::$WEBROOT = $oldWebRoot; - \OCP\Config::setSystemValue('defaultapp', $oldDefaultApps); + \OC::$server->getConfig()->setSystemValue('defaultapp', $oldDefaultApps); \OC_User::setUserId(null); } |