mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
Adjust date fix-up after column changes
This commit is contained in:
parent
07bac4ead3
commit
e9c6ddcfdf
1 changed files with 1 additions and 2 deletions
|
@ -428,14 +428,13 @@ abstract class AbstractTest extends \PHPUnit\Framework\TestCase {
|
|||
public function compareExpectations(Driver $drv, array $expected): void {
|
||||
foreach ($expected as $table => $info) {
|
||||
// serialize the rows of the expected output
|
||||
$types = array_values($info['columns']);
|
||||
$exp = [];
|
||||
$dates = [];
|
||||
foreach ($info['rows'] as $r) {
|
||||
$row = [];
|
||||
foreach ($r as $c => $v) {
|
||||
// store any date values for later comparison
|
||||
if ($types[$c] === "datetime") {
|
||||
if (self::COL_DEFS[$table][$info['columns'][$c]] === "datetime") {
|
||||
$dates[] = $v;
|
||||
}
|
||||
// serialize to CSV, null being represented by no value
|
||||
|
|
Loading…
Reference in a new issue