MDL-65974 course: move format_base to core_course\course_format
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user