|
|
|
|
@ -31,12 +31,13 @@ class Test_Cache_File extends Test_Cache { |
|
|
|
|
//clear all proxies and hooks so we can do clean testing |
|
|
|
|
OC_FileProxy::clearProxies(); |
|
|
|
|
OC_Hook::clear('OC_Filesystem'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//disabled atm |
|
|
|
|
//enable only the encryption hook if needed |
|
|
|
|
if(OC_App::isEnabled('files_encryption')) { |
|
|
|
|
OC_FileProxy::register(new OC_FileProxy_Encryption()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//if(OC_App::isEnabled('files_encryption')) { |
|
|
|
|
// OC_FileProxy::register(new OC_FileProxy_Encryption()); |
|
|
|
|
//} |
|
|
|
|
|
|
|
|
|
//set up temporary storage |
|
|
|
|
\OC\Files\Filesystem::clearMounts(); |
|
|
|
|
\OC\Files\Filesystem::mount('\OC\Files\Storage\Temporary',array(),'/'); |
|
|
|
|
|