Skip invalid table names
This commit is contained in:
@@ -61,7 +61,7 @@ trait DatabaseTestTrait
|
|||||||
$data = include $fixture;
|
$data = include $fixture;
|
||||||
|
|
||||||
foreach ($data as $tableName => $rows) {
|
foreach ($data as $tableName => $rows) {
|
||||||
if (!is_array($rows)) {
|
if (!is_array($rows) && !is_numeric($tableName)) {
|
||||||
$dba->p('TRUNCATE TABLE `' . $tableName . '``');
|
$dba->p('TRUNCATE TABLE `' . $tableName . '``');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user