diff --git a/lib/phpunit/classes/util.php b/lib/phpunit/classes/util.php index 3534ef80a0c..7096b8d3308 100644 --- a/lib/phpunit/classes/util.php +++ b/lib/phpunit/classes/util.php @@ -621,6 +621,10 @@ class phpunit_util { $GROUPLIB_CACHE = null; //TODO MDL-25290: add more resets here and probably refactor them to new core function + // Rest course and module caches. + $reset = 'reset'; + get_fast_modinfo($reset); + // purge dataroot directory self::reset_dataroot();