From 6394fedb3309dc163ed37081809f80f90157e096 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Thu, 13 Jun 2013 10:35:30 +0200 Subject: [PATCH] add comment to explain the helper function --- apps/files_encryption/tests/util.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/files_encryption/tests/util.php b/apps/files_encryption/tests/util.php index 93b3d111e44..fb10284c58f 100755 --- a/apps/files_encryption/tests/util.php +++ b/apps/files_encryption/tests/util.php @@ -314,6 +314,14 @@ class Test_Encryption_Util extends \PHPUnit_Framework_TestCase { OCA\Encryption\Hooks::login($params); } + /** + * helper function to set migration status to the right value + * to be able to test the migration path + * + * @param $status needed migration status for test + * @param $user for which user the status should be set + * @return boolean + */ private function setMigrationStatus($status, $user) { $sql = 'UPDATE `*PREFIX*encryption` SET `migration_status` = ? WHERE `uid` = ?'; $args = array( -- 2.39.5