reset init status before login
This commit is contained in:
parent
8cf9b423d5
commit
d3e887a7cf
1 changed files with 7 additions and 1 deletions
|
@ -26,7 +26,7 @@
|
|||
use OCA\Files_Trashbin;
|
||||
|
||||
/**
|
||||
* Class Test_Encryption_Crypt
|
||||
* Class Test_Encryption
|
||||
*/
|
||||
class Test_Trashbin extends \Test\TestCase {
|
||||
|
||||
|
@ -306,6 +306,12 @@ 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