diff options
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); } |