diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-03-17 17:26:03 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-03-17 17:26:03 +0100 |
commit | fbea83d4eb53cb500570a096d84a3f6eca11cb84 (patch) | |
tree | f5b2df9e25f664d689641080e5b9ff514aa7a714 /tests | |
parent | 012016d3311a13c3c1e9d60778dc6fbd6be0204e (diff) | |
download | nextcloud-server-fbea83d4eb53cb500570a096d84a3f6eca11cb84.tar.gz nextcloud-server-fbea83d4eb53cb500570a096d84a3f6eca11cb84.zip |
fix failing unit test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/share/share.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php index 1ef62dc2b07..4fa498f3156 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'); } |