MDL-60600 core_output: Clear static icon system cache between unit tests

This commit is contained in:
Mark Johnson
2017-10-26 14:59:35 +01:00
parent d12e409784
commit a9ca3fa167
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -145,5 +145,12 @@ abstract class icon_system {
}
return false;
}
/**
* Clears the instance cache, for use in unit tests
*/
public static function reset_caches() {
self::$instance = null;
}
}