Merge branch 'MDL-82281-501' of https://github.com/lucaboesch/moodle into MOODLE_501_STABLE

This commit is contained in:
Mihail Geshoski
2025-12-09 09:45:32 +08:00
+5
View File
@@ -240,6 +240,11 @@ final class external_test extends \core_external\tests\externallib_testcase {
break;
}
}
// Clear static cache and call get_fast_modinfo() again so that in the following cache should not be rebuilt.
\course_modinfo::clear_instance_cache();
get_fast_modinfo($record->course);
$enrol->enrol_user($instance2, $this->student->id, $this->studentrole->id);
self::setUser($this->student);