From 8868b7f8d938463169e6bdf98cf7d60f38805b79 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 15 May 2020 15:16:34 +0000 Subject: [PATCH] Skip invalid table names --- tests/DatabaseTestTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5