From e22cff45ab2abedb449c2e8ed54b0fd7b58ee647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Tue, 9 Oct 2012 09:43:08 +0200 Subject: [PATCH] MDL-35898 include static course caches in test resets --- lib/phpunit/classes/util.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/phpunit/classes/util.php b/lib/phpunit/classes/util.php index b580259da3e..6376e14ffcd 100644 --- a/lib/phpunit/classes/util.php +++ b/lib/phpunit/classes/util.php @@ -618,6 +618,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();