reset init status before login

This commit is contained in:
Bjoern Schiessle 2015-04-02 13:28:18 +02:00 committed by Thomas Müller
parent 8cf9b423d5
commit d3e887a7cf

View file

@ -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();