fix OC_Cache_File tests if encryption is not enabled
This commit is contained in:
parent
48306a3c4f
commit
0e6238c66f
1 changed files with 4 additions and 2 deletions
6
tests/lib/cache/file.php
vendored
6
tests/lib/cache/file.php
vendored
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue