]> source.dussan.org Git - nextcloud-server.git/commitdiff
add comment to explain the helper function
authorBjörn Schießle <schiessle@owncloud.com>
Thu, 13 Jun 2013 08:35:30 +0000 (10:35 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Thu, 13 Jun 2013 08:35:30 +0000 (10:35 +0200)
apps/files_encryption/tests/util.php

index 93b3d111e448fb77e33aaf6b5d0adf8f8fe5c8c3..fb10284c58f54f4e951791281a3eb527ce98294c 100755 (executable)
@@ -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(