diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-10-10 17:34:19 +0400 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-10-20 13:29:20 +0400 |
commit | cb3a4d22b17ee3dd016faf52530b8f888cef5723 (patch) | |
tree | 8d8e3e7bdc95344dc87ab1e36f73d26616843f21 /apps/files_encryption/tests/crypt.php | |
parent | ca0e3fdfea51d8db52341c3866102e7058abc9c0 (diff) |
make tests compatible with hook based skeleton generation
Diffstat (limited to 'apps/files_encryption/tests/crypt.php')
-rwxr-xr-x | apps/files_encryption/tests/crypt.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_encryption/tests/crypt.php b/apps/files_encryption/tests/crypt.php index 1bebb3cd36c..a89754d4a14 100755 --- a/apps/files_encryption/tests/crypt.php +++ b/apps/files_encryption/tests/crypt.php @@ -102,6 +102,14 @@ class Test_Encryption_Crypt extends \PHPUnit_Framework_TestCase { public static function tearDownAfterClass() { // cleanup test user \OC_User::deleteUser(\Test_Encryption_Crypt::TEST_ENCRYPTION_CRYPT_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'); } /** |