Skip to content

Commit

Permalink
MDL-54613 unit tests: Add iteminstance to test grade_item
Browse files Browse the repository at this point in the history
  • Loading branch information
micaherne committed May 17, 2016
1 parent 33892ed commit 0c0f01a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/grade/tests/grade_item_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ protected function sub_test_update_final_grade() {
$grade_item->itemtype = 'mod';
$grade_item->itemmodule = 'quiz';
$grade_item->iteminfo = 'Grade item used for unit testing';
$grade_item->iteminstance = $this->activities[7]->id;
$grade_item->grademin = $min;
$grade_item->grademax = $max;
$grade_item->insert();
Expand Down

0 comments on commit 0c0f01a

Please sign in to comment.