MDL-52799 phpunit: Truncate records for brokedmysql not empty.

This commit is contained in:
Rajesh Taneja
2016-01-18 14:10:18 +08:00
parent e8d5100212
commit 1226f3ca33
+6 -1
View File
@@ -685,7 +685,12 @@ abstract class testing_util {
}
if ($borkedmysql) {
if (empty($records) and isset($empties[$table])) {
if (empty($records)) {
if (isset($empties[$table])) {
// Table was not modified and is empty.
} else {
$DB->delete_records($table, null);
}
continue;
}