Skip to content

Commit

Permalink
FROM list: Add 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 8b1e107
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 * FROM A, (SELECT * FROM B) B';
$this->assertEquals($sql, self::simplifySql($magicQuery->build($sql)));
}

public function testInNullException() {
Expand Down

0 comments on commit 8b1e107

Please sign in to comment.