summaryrefslogtreecommitdiffstats
path: root/tests/lib/share/share.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-27 16:07:41 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-27 16:07:41 +0100
commit4d12c4a38b13e2319b85db27b03ba0eb6b9cff35 (patch)
treefe7934b972d2423c702c92366c17600fecaf3857 /tests/lib/share/share.php
parent722e50a112579d851b958a21cf26c2e85a4ce5c2 (diff)
parent378eef7eb45bd2ec8e6a06e2ba776f55078dcbef (diff)
downloadnextcloud-server-4d12c4a38b13e2319b85db27b03ba0eb6b9cff35.tar.gz
nextcloud-server-4d12c4a38b13e2319b85db27b03ba0eb6b9cff35.zip
Merge pull request #13938 from owncloud/deprecate-iappconfig
Deprecated \OCP\IAppConfig - add missing methods to IConfig
Diffstat (limited to 'tests/lib/share/share.php')
-rw-r--r--tests/lib/share/share.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php
index 42bb82968af..a564fe04b11 100644
--- a/tests/lib/share/share.php
+++ b/tests/lib/share/share.php
@@ -857,8 +857,10 @@ class Test_Share extends \Test\TestCase {
public function testShareItemWithLinkAndDefaultExpireDate() {
OC_User::setUserId($this->user1);
- \OC_Appconfig::setValue('core', 'shareapi_default_expire_date', 'yes');
- \OC_Appconfig::setValue('core', 'shareapi_expire_after_n_days', '2');
+ $config = \OC::$server->getConfig();
+
+ $config->setAppValue('core', 'shareapi_default_expire_date', 'yes');
+ $config->setAppValue('core', 'shareapi_expire_after_n_days', '2');
$token = OCP\Share::shareItem('test', 'test.txt', OCP\Share::SHARE_TYPE_LINK, null, \OCP\Constants::PERMISSION_READ);
$this->assertInternalType(
@@ -875,8 +877,8 @@ class Test_Share extends \Test\TestCase {
'Failed asserting that the returned row has an default expiration date.'
);
- \OC_Appconfig::deleteKey('core', 'shareapi_default_expire_date');
- \OC_Appconfig::deleteKey('core', 'shareapi_expire_after_n_days');
+ $config->deleteAppValue('core', 'shareapi_default_expire_date');
+ $config->deleteAppValue('core', 'shareapi_expire_after_n_days');
}