mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 10:03:32 -04:00
Fix tests
This commit is contained in:
parent
33c29d3da7
commit
b9f655d8ad
1 changed files with 1 additions and 7 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue