MDL-51053 Restore: Static cache breaks unit tests

This commit is contained in:
sam marshall
2015-08-11 14:09:19 +01:00
parent f593be963c
commit 9cb8cd1a21
3 changed files with 51 additions and 18 deletions
+5
View File
@@ -225,6 +225,11 @@ class phpunit_util extends testing_util {
\core\update\deployer::reset_caches(true);
}
// Clear static cache within restore.
if (class_exists('restore_section_structure_step')) {
restore_section_structure_step::reset_caches();
}
// purge dataroot directory
self::reset_dataroot();