MDL-30545/ MDL-36199 reset plugin manager singletons
This commit is contained in:
committed by
Dan Poltawski
parent
af698e64d2
commit
95f6a022ca
@@ -625,6 +625,14 @@ class phpunit_util {
|
||||
$reset = 'reset';
|
||||
get_fast_modinfo($reset);
|
||||
|
||||
// Reset other singletons.
|
||||
if (class_exists('plugin_manager')) {
|
||||
plugin_manager::reset_caches(true);
|
||||
}
|
||||
if (class_exists('available_update_checker')) {
|
||||
available_update_checker::reset_caches(true);
|
||||
}
|
||||
|
||||
// purge dataroot directory
|
||||
self::reset_dataroot();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user