Skip to content

Commit

Permalink
Allow scalar values for Query::select() (#329)
Browse files Browse the repository at this point in the history
* Update tests according main PR

* Add type string to test

---------

Co-authored-by: Sergei Predvoditelev <sergei@predvoditelev.ru>
  • Loading branch information
Tigrov and vjik committed Apr 13, 2024
1 parent a181ab6 commit bf11e0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/QueryBuilderTest.php
Expand Up @@ -653,4 +653,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|string $columns, string $expected): void
{
parent::testSelectScalar($columns, $expected);
}
}

0 comments on commit bf11e0f

Please sign in to comment.