MDL-10223 Implement locking of grades and grade items - cron support still not implemented;
this patch also contains improvements in handling of needsupdate, though it is not yet fully working for calculated grades
This commit is contained in:
@@ -80,7 +80,7 @@ class gradelib_test extends grade_test {
|
||||
if (get_class($this) == 'gradelib_test') {
|
||||
$grade_item = $this->grade_items[0];
|
||||
$this->assertFalse(grade_is_locked($grade_item->courseid, $grade_item->itemtype, $grade_item->itemmodule, $grade_item->iteminstance, $grade_item->itemnumber));
|
||||
$grade_item = $this->grade_items[1];
|
||||
$grade_item = $this->grade_items[6];
|
||||
$this->assertTrue(grade_is_locked($grade_item->courseid, $grade_item->itemtype, $grade_item->itemmodule, $grade_item->iteminstance, $grade_item->itemnumber));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user