diff --git a/lib/phpunit/lib.php b/lib/phpunit/lib.php index 58e80f01e35aa..4b8cd972145ee 100644 --- a/lib/phpunit/lib.php +++ b/lib/phpunit/lib.php @@ -423,6 +423,7 @@ public static function reset_all_data($logchanges = false) { // reset all static caches accesslib_clear_all_caches(true); get_string_manager()->reset_caches(); + events_get_handlers('reset'); //TODO: add more resets here and probably refactor them to new core function // purge dataroot