mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +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 {
|
public function compareExpectations(Driver $drv, array $expected): void {
|
||||||
foreach ($expected as $table => $info) {
|
foreach ($expected as $table => $info) {
|
||||||
// serialize the rows of the expected output
|
// serialize the rows of the expected output
|
||||||
$types = array_values($info['columns']);
|
|
||||||
$exp = [];
|
$exp = [];
|
||||||
$dates = [];
|
$dates = [];
|
||||||
foreach ($info['rows'] as $r) {
|
foreach ($info['rows'] as $r) {
|
||||||
$row = [];
|
$row = [];
|
||||||
foreach ($r as $c => $v) {
|
foreach ($r as $c => $v) {
|
||||||
// store any date values for later comparison
|
// store any date values for later comparison
|
||||||
if ($types[$c] === "datetime") {
|
if (self::COL_DEFS[$table][$info['columns'][$c]] === "datetime") {
|
||||||
$dates[] = $v;
|
$dates[] = $v;
|
||||||
}
|
}
|
||||||
// serialize to CSV, null being represented by no value
|
// serialize to CSV, null being represented by no value
|
||||||
|
|
Loading…
Reference in a new issue