MDL-67353 course: move form tearDown() to reset_all_data()
We are already cleaning all sort of caches, statics, singletons there and it's better to ensure they are always reset to avoid myterious failures @ distance.
This commit is contained in:
@@ -252,6 +252,9 @@ class phpunit_util extends testing_util {
|
||||
if (class_exists('\core\update\checker')) {
|
||||
\core\update\checker::reset_caches(true);
|
||||
}
|
||||
if (class_exists('\core_course\customfield\course_handler')) {
|
||||
\core_course\customfield\course_handler::reset_caches();
|
||||
}
|
||||
|
||||
// Clear static cache within restore.
|
||||
if (class_exists('restore_section_structure_step')) {
|
||||
|
||||
Reference in New Issue
Block a user