fix versions tests

This commit is contained in:
Bjoern Schiessle 2015-04-02 16:53:38 +02:00 committed by Thomas Müller
parent 3d7404fe68
commit 9a7fbbbc5a
1 changed files with 6 additions and 0 deletions

View File

@ -431,6 +431,12 @@ class Test_Files_Versioning extends \Test\TestCase {
\OC::$server->getUserManager()->registerBackend($backend);
}
$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();