From c24497d2c72491aee87a81d6febb3fd98c863616 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 29 Jul 2024 10:45:55 +0900 Subject: [PATCH] test: update test code --- tests/system/DataConverter/DataConverterTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/system/DataConverter/DataConverterTest.php b/tests/system/DataConverter/DataConverterTest.php index f56a18d10e48..53a6361bb0de 100644 --- a/tests/system/DataConverter/DataConverterTest.php +++ b/tests/system/DataConverter/DataConverterTest.php @@ -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', @@ -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, @@ -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,