MDL-43266 Testing sites are cleaning all test dataroot contents

This commit is contained in:
Jerome Mouneyrac
2014-02-25 14:47:25 +08:00
parent 692d247a3a
commit c78f19d153
3 changed files with 160 additions and 13 deletions
Regular → Executable
+4
View File
@@ -384,6 +384,10 @@ class phpunit_util extends testing_util {
install_cli_database($options, false);
// We need to keep the installed dataroot filedir files.
// So each time we reset the dataroot before running a test, the default files are still installed.
self::save_original_data_files();
// install timezone info
$timezones = get_records_csv($CFG->libdir.'/timezone.txt', 'timezone');
update_timezone_records($timezones);