Clear the storage wrappers after clearing the hooks

This commit is contained in:
Joas Schilling 2016-07-01 15:42:19 +02:00
parent 3cb7672b06
commit 8ab26381a4
No known key found for this signature in database
GPG Key ID: 70A0B324C41C0946
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ class View extends \Test\TestCase {
protected function setUp() {
parent::setUp();
\OC_Hook::clear();
$storageFactory = \OC\Files\Filesystem::getLoader();
$this->invokePrivate($storageFactory, 'storageWrappers', [[]]);
\OC_User::clearBackends();
\OC_User::useBackend(new \Test\Util\User\Dummy());