From 812013b1c1783819bbd922baf3d4dabf41dfab56 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sat, 7 Apr 2012 14:56:28 +0200 Subject: [PATCH] MDL-32323 reset event handlers in phpunit test reset --- lib/phpunit/lib.php | 1 + 1 file changed, 1 insertion(+) 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