From b9f655d8ada528086eb623705adb683fcb951ebe Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Wed, 5 Aug 2015 17:02:53 +0300 Subject: Fix tests --- apps/files_trashbin/tests/trashbin.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'apps') 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(); -- cgit v1.2.3