mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-51053 Restore: Static cache breaks unit tests
This commit is contained in:
parent
57739a72cb
commit
27479b5cc9
3 changed files with 51 additions and 18 deletions
|
@ -239,6 +239,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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue