From 8ab26381a402e97ea51fceea2ebf0036bc131fbe Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 1 Jul 2016 15:42:19 +0200 Subject: [PATCH] Clear the storage wrappers after clearing the hooks --- tests/lib/files/view.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php index 86413c61aa..66edd3164e 100644 --- a/tests/lib/files/view.php +++ b/tests/lib/files/view.php @@ -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());