MDL-35238 Add support for explicit singleton reset
This may be needed during PHPUnit testing.
This commit is contained in:
@@ -655,6 +655,9 @@ class phpunit_util {
|
||||
if (class_exists('available_update_checker')) {
|
||||
available_update_checker::reset_caches(true);
|
||||
}
|
||||
if (class_exists('available_update_deployer')) {
|
||||
available_update_deployer::reset_caches(true);
|
||||
}
|
||||
|
||||
// purge dataroot directory
|
||||
self::reset_dataroot();
|
||||
|
||||
Reference in New Issue
Block a user