Merge branch 'MDL-78547-403-phpunit' of https://github.com/HuongNV13/moodle into MOODLE_403_STABLE

This commit is contained in:
Ilya Tregubov
2024-03-08 13:44:56 +08:00
2 changed files with 0 additions and 9 deletions
-8
View File
@@ -397,14 +397,6 @@ class quiz_overview_report extends attempts_report {
return $messages;
}
/**
* For use in tests only. Clear the cached regrade data.
*/
public function clear_regrade_date_cache(): void {
$this->structureforregrade = null;
$this->newquestionidsforold = null;
}
/**
* Regrade attempts for this quiz, exactly which attempts are regraded is
* controlled by the parameters.
@@ -398,7 +398,6 @@ class report_test extends \advanced_testcase {
// Now change the quiz back to always latest and regrade again.
submit_question_version::execute($slot->slotid, 0);
$report->clear_regrade_date_cache();
$report->regrade_attempt($attempt);
// Score should now be 5, because v3 is the latest non-draft version.