summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/tests
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-08-05 17:02:53 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-08-10 23:55:10 +0300
commitb9f655d8ada528086eb623705adb683fcb951ebe (patch)
treea4f8dd7d7a9495b12142f2a862325f40927d3fc5 /apps/files_trashbin/tests
parent33c29d3da75447da6a659239e8a2b60c72230588 (diff)
downloadnextcloud-server-b9f655d8ada528086eb623705adb683fcb951ebe.tar.gz
nextcloud-server-b9f655d8ada528086eb623705adb683fcb951ebe.zip
Fix tests
Diffstat (limited to 'apps/files_trashbin/tests')
-rw-r--r--apps/files_trashbin/tests/trashbin.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/files_trashbin/tests/trashbin.php b/apps/files_trashbin/tests/trashbin.php
index 0bdca60f7e7..f60367a77e2 100644
--- a/apps/files_trashbin/tests/trashbin.php
+++ b/apps/files_trashbin/tests/trashbin.php
@@ -71,7 +71,7 @@ class Test_Trashbin extends \Test\TestCase {
//configure trashbin
self::$rememberRetentionObligation = \OC_Config::getValue('trashbin_retention_obligation', Files_Trashbin\Expiration::DEFAULT_RETENTION_OBLIGATION);
- \OC_Config::setValue('trashbin_retention_obligation', 2);
+ \OC_Config::setValue('trashbin_retention_obligation', 'auto, 2');
// register hooks
Files_Trashbin\Trashbin::registerHooks();
@@ -631,12 +631,6 @@ class Test_Trashbin extends \Test\TestCase {
}
}
- $storage = new \ReflectionClass('\OC\Files\Storage\Shared');
- $isInitialized = $storage->getProperty('isInitialized');
- $isInitialized->setAccessible(true);
- $isInitialized->setValue(array());
- $isInitialized->setAccessible(false);
-
\OC_Util::tearDownFS();
\OC_User::setUserId('');
\OC\Files\Filesystem::tearDown();