MDL-43266 Testing sites are cleaning all test dataroot contents

This commit is contained in:
Jerome Mouneyrac
2014-02-25 14:49:14 +08:00
parent c8d383fdcd
commit f411652f78
3 changed files with 160 additions and 13 deletions
Regular → Executable
+4
View File
@@ -380,6 +380,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);