From: Bjoern Schiessle Date: Thu, 2 Apr 2015 11:28:18 +0000 (+0200) Subject: reset init status before login X-Git-Tag: v8.1.0alpha1~78^2~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d3e887a7cf7a0285a813fe2eddf0184e094447fd;p=nextcloud-server.git reset init status before login --- diff --git a/apps/files_trashbin/tests/trashbin.php b/apps/files_trashbin/tests/trashbin.php index c98de79cbd0..bf6446389f1 100644 --- a/apps/files_trashbin/tests/trashbin.php +++ b/apps/files_trashbin/tests/trashbin.php @@ -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();