summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-06-13 10:35:30 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-06-13 10:35:30 +0200
commit6394fedb3309dc163ed37081809f80f90157e096 (patch)
tree765d07982bdb92943d05e189862801f08bb56744 /apps
parent77944cf7b861fbe580c119f5471e3783e9a0cea1 (diff)
downloadnextcloud-server-6394fedb3309dc163ed37081809f80f90157e096.tar.gz
nextcloud-server-6394fedb3309dc163ed37081809f80f90157e096.zip
add comment to explain the helper function
Diffstat (limited to 'apps')
-rwxr-xr-xapps/files_encryption/tests/util.php8
1 files changed, 8 insertions, 0 deletions
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(