X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FDatabaseTestTrait.php;h=36636feabd57701d626d392a75d051733521a786;hb=8868b7f8d938463169e6bdf98cf7d60f38805b79;hp=5f753f3152e3d4688ea2505165240fbe9dcd7c19;hpb=d09b3f5bdeae444f785f6283e55dbf2f61caadac;p=friendica.git diff --git a/tests/DatabaseTestTrait.php b/tests/DatabaseTestTrait.php index 5f753f3152..36636feabd 100644 --- a/tests/DatabaseTestTrait.php +++ b/tests/DatabaseTestTrait.php @@ -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; }