Skip to content

Commit 94adfc5

Browse files
committed
test: update test code
1 parent 3c69a61 commit 94adfc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/system/DataConverter/DataConverterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public function testDateTimeConvertDataToDB(): void
368368
'id' => 'int',
369369
'date' => 'datetime',
370370
];
371-
$converter = $this->createDataConverter($types);
371+
$converter = $this->createDataConverter($types, [], db_connect());
372372

373373
$phpData = [
374374
'id' => '1',
@@ -620,7 +620,7 @@ public function testExtract(): void
620620
'created_at' => 'datetime',
621621
'updated_at' => 'datetime',
622622
];
623-
$converter = $this->createDataConverter($types);
623+
$converter = $this->createDataConverter($types, [], db_connect());
624624

625625
$phpData = [
626626
'id' => 1,
@@ -652,7 +652,7 @@ public function testExtractWithExtractMethod(): void
652652
'created_at' => 'datetime',
653653
'updated_at' => 'datetime',
654654
];
655-
$converter = $this->createDataConverter($types, [], null, 'toRawArray');
655+
$converter = $this->createDataConverter($types, [], db_connect(), 'toRawArray');
656656

657657
$phpData = [
658658
'id' => 1,

0 commit comments

Comments
 (0)