Merge branch 'wip-MDL-65220-MOODLE_36_STABLE' of https://github.com/jason-platts/moodle into MOODLE_36_STABLE

This commit is contained in:
David Monllaó
2019-04-15 07:58:18 +02:00
+3 -4
View File
@@ -926,12 +926,11 @@ abstract class testing_util {
if (defined('BEHAT_SITE_RUNNING')) {
$tablesupdatedfile = self::get_tables_updated_by_scenario_list_path();
if ($tablesupdated = @json_decode(file_get_contents($tablesupdatedfile), true)) {
$tablesupdated[$table] = true;
} else {
$tablesupdated = @json_decode(file_get_contents($tablesupdatedfile), true);
if (!isset($tablesupdated[$table])) {
$tablesupdated[$table] = true;
@file_put_contents($tablesupdatedfile, json_encode($tablesupdated, JSON_PRETTY_PRINT));
}
@file_put_contents($tablesupdatedfile, json_encode($tablesupdated, JSON_PRETTY_PRINT));
}
}
}