diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-10-10 15:34:19 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-10-20 11:29:20 +0200 |
commit | cb3a4d22b17ee3dd016faf52530b8f888cef5723 (patch) | |
tree | 8d8e3e7bdc95344dc87ab1e36f73d26616843f21 /apps/files_encryption/tests/proxy.php | |
parent | ca0e3fdfea51d8db52341c3866102e7058abc9c0 (diff) | |
download | nextcloud-server-cb3a4d22b17ee3dd016faf52530b8f888cef5723.tar.gz nextcloud-server-cb3a4d22b17ee3dd016faf52530b8f888cef5723.zip |
make tests compatible with hook based skeleton generation
Diffstat (limited to 'apps/files_encryption/tests/proxy.php')
-rw-r--r-- | apps/files_encryption/tests/proxy.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_encryption/tests/proxy.php b/apps/files_encryption/tests/proxy.php index 42637a52e04..56d6cd2f736 100644 --- a/apps/files_encryption/tests/proxy.php +++ b/apps/files_encryption/tests/proxy.php @@ -89,6 +89,14 @@ class Test_Encryption_Proxy extends \PHPUnit_Framework_TestCase { public static function tearDownAfterClass() { // cleanup test user \OC_User::deleteUser(\Test_Encryption_Proxy::TEST_ENCRYPTION_PROXY_USER1); + + \OC_Hook::clear(); + \OC_FileProxy::clearProxies(); + + // Delete keys in /data/ + $view = new \OC\Files\View('/'); + $view->rmdir('public-keys'); + $view->rmdir('owncloud_private_key'); } /** |