diff --git a/tests/DatabaseTestTrait.php b/tests/DatabaseTestTrait.php index 36636feab..2b829e51e 100644 --- a/tests/DatabaseTestTrait.php +++ b/tests/DatabaseTestTrait.php @@ -61,7 +61,11 @@ trait DatabaseTestTrait $data = include $fixture; foreach ($data as $tableName => $rows) { - if (!is_array($rows) && !is_numeric($tableName)) { + if (is_numeric($tableName)) { + continue; + } + + if (!is_array($rows)) { $dba->p('TRUNCATE TABLE `' . $tableName . '``'); continue; }