diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-04-02 13:28:18 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-07 13:30:30 +0200 |
commit | d3e887a7cf7a0285a813fe2eddf0184e094447fd (patch) | |
tree | 4db946d184fbc08f95c6cd7d8d73f9e99725ecdb | |
parent | 8cf9b423d5b2d66694f5772bc5310d088cb466c1 (diff) | |
download | nextcloud-server-d3e887a7cf7a0285a813fe2eddf0184e094447fd.tar.gz nextcloud-server-d3e887a7cf7a0285a813fe2eddf0184e094447fd.zip |
reset init status before login
-rw-r--r-- | apps/files_trashbin/tests/trashbin.php | 8 |
1 files changed, 7 insertions, 1 deletions
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(); |