MDL-65974 course: move format_base to core_course\course_format

This commit is contained in:
Ferran Recio
2021-03-11 17:36:34 +01:00
parent 96b49ddc97
commit 1c839f9072
16 changed files with 1440 additions and 35 deletions
+1 -4
View File
@@ -240,10 +240,7 @@ class phpunit_util extends testing_util {
//TODO MDL-25290: add more resets here and probably refactor them to new core function
// Reset course and module caches.
if (class_exists('format_base')) {
// If file containing class is not loaded, there is no cache there anyway.
format_base::reset_course_cache(0);
}
core_course\course_format::reset_course_cache(0);
get_fast_modinfo(0, 0, true);
// Reset other singletons.