Skip to content

Commit

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

* Add type string to test

* Apply Rector changes (CI)

* Revert "Apply Rector changes (CI)"

This reverts commit 230d3fd.

* Disable Rector for tests

---------

Co-authored-by: Tigrov <[email protected]>
Co-authored-by: Sergei Predvoditelev <[email protected]>
  • Loading branch information
3 people authored Apr 13, 2024
1 parent fc7567b commit 5cebdcd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -675,4 +675,10 @@ public function testUpsertExecute(
): void {
parent::testUpsertExecute($table, $insertColumns, $updateColumns);
}

/** @dataProvider \Yiisoft\Db\Pgsql\Tests\Provider\QueryBuilderProvider::selectScalar */
public function testSelectScalar(array|bool|float|int|string $columns, string $expected): void
{
parent::testSelectScalar($columns, $expected);
}
}

0 comments on commit 5cebdcd

Please sign in to comment.