diff --git a/tests/unit/Hooks/UserHooksTest.php b/tests/unit/Hooks/UserHooksTest.php index 01ae2c12..0f58257e 100644 --- a/tests/unit/Hooks/UserHooksTest.php +++ b/tests/unit/Hooks/UserHooksTest.php @@ -458,5 +458,11 @@ protected function setUp() { $this->config ] )->setMethods(['setupFS'])->getMock(); + \OC_App::enable('encryption'); + } + + protected function tearDown() { + parent::tearDown(); + \OC_App::disable('encryption'); } }