From fd14d732309bd4e1d74376efb10713b292dd414b Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sat, 6 Apr 2024 12:36:07 +0700 Subject: [PATCH 1/2] Update tests according main PR --- tests/QueryBuilderTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/QueryBuilderTest.php b/tests/QueryBuilderTest.php index 20c5e64ba..0f633d092 100644 --- a/tests/QueryBuilderTest.php +++ b/tests/QueryBuilderTest.php @@ -639,4 +639,10 @@ public function testUpsertExecute( ): void { parent::testUpsertExecute($table, $insertColumns, $updateColumns); } + + /** @dataProvider \Yiisoft\Db\Mysql\Tests\Provider\QueryBuilderProvider::selectScalar */ + public function testSelectScalar(array|bool|float|int $columns, string $expected): void + { + parent::testSelectScalar($columns, $expected); + } } From 99987b0a6e2c7db1bf048251cb8c484b1049f927 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Mon, 8 Apr 2024 09:46:49 +0700 Subject: [PATCH 2/2] Add type string to test --- tests/QueryBuilderTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/QueryBuilderTest.php b/tests/QueryBuilderTest.php index 0f633d092..2ed395f93 100644 --- a/tests/QueryBuilderTest.php +++ b/tests/QueryBuilderTest.php @@ -641,7 +641,7 @@ public function testUpsertExecute( } /** @dataProvider \Yiisoft\Db\Mysql\Tests\Provider\QueryBuilderProvider::selectScalar */ - public function testSelectScalar(array|bool|float|int $columns, string $expected): void + public function testSelectScalar(array|bool|float|int|string $columns, string $expected): void { parent::testSelectScalar($columns, $expected); }