Skip to content

Commit

Permalink
Fix unit test errors for not enabling encryption app
Browse files Browse the repository at this point in the history
This change helps to fix the errors caused
while running the unit test without enabling
the app.

Signed-off-by: Sujith H <[email protected]>
  • Loading branch information
sharidas committed Apr 9, 2019
1 parent 3192a29 commit 4f2d98d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unit/Hooks/UserHooksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

0 comments on commit 4f2d98d

Please sign in to comment.