Skip to content

Commit

Permalink
test: update test code
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jul 29, 2024
1 parent 5bb2651 commit c24497d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/system/DataConverter/DataConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public function testDateTimeConvertDataToDB(): void
'id' => 'int',
'date' => 'datetime',
];
$converter = $this->createDataConverter($types);
$converter = $this->createDataConverter($types, [], db_connect());

$phpData = [
'id' => '1',
Expand Down Expand Up @@ -620,7 +620,7 @@ public function testExtract(): void
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
$converter = $this->createDataConverter($types);
$converter = $this->createDataConverter($types, [], db_connect());

$phpData = [
'id' => 1,
Expand Down Expand Up @@ -652,7 +652,7 @@ public function testExtractWithExtractMethod(): void
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
$converter = $this->createDataConverter($types, [], null, 'toRawArray');
$converter = $this->createDataConverter($types, [], db_connect(), 'toRawArray');

$phpData = [
'id' => 1,
Expand Down

0 comments on commit c24497d

Please sign in to comment.