Permalink
Browse files

MDL-35898 include static course caches in test resets

  • Loading branch information...
1 parent 562dbe4 commit e22cff45ab2abedb449c2e8ed54b0fd7b58ee647 @skodak skodak committed Oct 9, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/phpunit/classes/util.php
@@ -618,6 +618,10 @@ public static function reset_all_data($logchanges = false) {
$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();

0 comments on commit e22cff4

Please sign in to comment.