mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-60600_master' of https://github.com/marxjohnson/moodle
This commit is contained in:
commit
a272c25649
@ -145,5 +145,12 @@ abstract class icon_system {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the instance cache, for use in unit tests
|
||||
*/
|
||||
public static function reset_caches() {
|
||||
self::$instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -217,6 +217,7 @@ class phpunit_util extends testing_util {
|
||||
core_filetypes::reset_caches();
|
||||
\core_search\manager::clear_static();
|
||||
core_user::reset_caches();
|
||||
\core\output\icon_system::reset_caches();
|
||||
if (class_exists('core_media_manager', false)) {
|
||||
core_media_manager::reset_caches();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user