Restructure tests
- Avoid database leftovers
This commit is contained in:
parent
704508fc65
commit
e1813e3d73
11 changed files with 161 additions and 104 deletions
|
@ -71,7 +71,11 @@ trait DatabaseTestTrait
|
|||
}
|
||||
|
||||
foreach ($rows as $row) {
|
||||
$dba->insert($tableName, $row, true);
|
||||
if (is_array($row)) {
|
||||
$dba->insert($tableName, $row, true);
|
||||
} else {
|
||||
throw new \Exception('row isn\'t an array');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue