Skip to content

Commit

Permalink
Order By Alias: Adding failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
homersimpsons committed Mar 23, 2021
1 parent bae0f92 commit eed591b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Mouf/Database/MagicQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ public function testStandardSelect()

$sql = 'SELECT COUNT(*) AS cnt FROM (SELECT id FROM country) subquery';
$this->assertEquals($sql, self::simplifySql($magicQuery->build($sql)));

$sql = 'SELECT id as folderId FROM users ORDER BY folderId ASC';
$this->assertEquals('', $magicQuery->build($sql));
}

public function testInNullException() {
Expand Down

0 comments on commit eed591b

Please sign in to comment.