File tree Expand file tree Collapse file tree
tests/Doctrine/Tests/ORM/Query Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -263,6 +263,21 @@ public function testSupportsAggregateFunctionWithSimpleArithmetic()
263263 );
264264 }
265265
266+ public function testSupportsAggregateCountFunctionWithSimpleArithmetic ()
267+ {
268+ $ connMock = $ this ->_em ->getConnection ();
269+ $ orgPlatform = $ connMock ->getDatabasePlatform ();
270+
271+ $ connMock ->setDatabasePlatform (new \Doctrine \DBAL \Platforms \MySqlPlatform );
272+
273+ $ this ->assertSqlGeneration (
274+ 'SELECT COUNT(CONCAT(u.id, u.name)) FROM Doctrine\Tests\Models\CMS\CmsUser u GROUP BY u.id ' ,
275+ 'SELECT COUNT(CONCAT(c0_.id, c0_.name)) AS sclr_0 FROM cms_users c0_ GROUP BY c0_.id '
276+ );
277+
278+ $ connMock ->setDatabasePlatform ($ orgPlatform );
279+ }
280+
266281 public function testSupportsWhereClauseWithPositionalParameter ()
267282 {
268283 $ this ->assertSqlGeneration (
You can’t perform that action at this time.
0 commit comments