MDL-35898 include static course caches in test resets

This commit is contained in:
Petr Škoda
2012-10-09 09:43:08 +02:00
parent ccd90e765e
commit 13d5c93872
+8
View File
@@ -626,6 +626,14 @@ class phpunit_util {
$GROUPLIB_CACHE = null;
//TODO MDL-25290: add more resets here and probably refactor them to new core function
// Rest 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);
}
$reset = 'reset';
get_fast_modinfo($reset);
// purge dataroot directory
self::reset_dataroot();