add comment to explain the helper function

This commit is contained in:
Björn Schießle 2013-06-13 10:35:30 +02:00
parent 77944cf7b8
commit 6394fedb33
1 changed files with 8 additions and 0 deletions

View File

@ -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(