mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-78547 quiz: Remove unnecessary call to clear_regrade_date_cache()
This method is designed to clear the values but these values are never set anywhere It's safe to remove it out of the test now
This commit is contained in:
parent
585c3d189c
commit
57610d2bd9
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user