mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-74416 phpunit: fix generator counters reset
This commit is contained in:
parent
941a29925e
commit
d91cd20d64
@ -87,10 +87,18 @@ EOD;
|
||||
* @return void
|
||||
*/
|
||||
public function reset() {
|
||||
$this->gradecategorycounter = 0;
|
||||
$this->gradeitemcounter = 0;
|
||||
$this->gradeoutcomecounter = 0;
|
||||
$this->usercounter = 0;
|
||||
$this->categorycount = 0;
|
||||
$this->cohortcount = 0;
|
||||
$this->coursecount = 0;
|
||||
$this->scalecount = 0;
|
||||
$this->groupcount = 0;
|
||||
$this->groupingcount = 0;
|
||||
$this->rolecount = 0;
|
||||
$this->tagcount = 0;
|
||||
|
||||
foreach ($this->generators as $generator) {
|
||||
$generator->reset();
|
||||
|
Loading…
x
Reference in New Issue
Block a user