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