Skip to content
Snippets Groups Projects
Commit 0e6238c6 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix OC_Cache_File tests if encryption is not enabled

parent 48306a3c
No related branches found
No related tags found
No related merge requests found
...@@ -30,8 +30,10 @@ class Test_Cache_File extends Test_Cache { ...@@ -30,8 +30,10 @@ class Test_Cache_File extends Test_Cache {
OC_FileProxy::clearProxies(); OC_FileProxy::clearProxies();
OC_Hook::clear('OC_Filesystem'); OC_Hook::clear('OC_Filesystem');
//enable only the encryption hook //enable only the encryption hook if needed
OC_FileProxy::register(new OC_FileProxy_Encryption()); if(OC_App::isEnabled('files_encryption')){
OC_FileProxy::register(new OC_FileProxy_Encryption());
}
//set up temporary storage //set up temporary storage
OC_Filesystem::clearMounts(); OC_Filesystem::clearMounts();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment