diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-17 21:14:09 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-17 21:41:57 +0100 |
commit | 1e7b20f61585520b183a268662aa1b09c4f469b4 (patch) | |
tree | a0088dd7fb996e8af4fb42f7b5d976c3d3995ee6 /tests/lib/Share | |
parent | 09f8a755ec6897eb72aa1da4eff623807201623d (diff) | |
download | nextcloud-server-1e7b20f61585520b183a268662aa1b09c4f469b4.tar.gz nextcloud-server-1e7b20f61585520b183a268662aa1b09c4f469b4.zip |
Remove IAppConfig::setValue
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Share')
-rw-r--r-- | tests/lib/Share/ShareTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Share/ShareTest.php b/tests/lib/Share/ShareTest.php index 07034bef1a4..18d1944f193 100644 --- a/tests/lib/Share/ShareTest.php +++ b/tests/lib/Share/ShareTest.php @@ -104,7 +104,7 @@ class ShareTest extends \Test\TestCase { \OC_Hook::clear('OCP\\Share'); \OC::registerShareHooks(); $this->resharing = \OC::$server->getConfig()->getAppValue('core', 'shareapi_allow_resharing', 'yes'); - \OC::$server->getAppConfig()->setValue('core', 'shareapi_allow_resharing', 'yes'); + \OC::$server->getConfig()->setAppValue('core', 'shareapi_allow_resharing', 'yes'); // 20 Minutes in the past, 20 minutes in the future. $now = time(); @@ -116,7 +116,7 @@ class ShareTest extends \Test\TestCase { protected function tearDown() { $query = \OC_DB::prepare('DELETE FROM `*PREFIX*share` WHERE `item_type` = ?'); $query->execute(array('test')); - \OC::$server->getAppConfig()->setValue('core', 'shareapi_allow_resharing', $this->resharing); + \OC::$server->getConfig()->setAppValue('core', 'shareapi_allow_resharing', $this->resharing); $this->user1->delete(); $this->user2->delete(); |