Skip to content

Commit

Permalink
Added a test with multiple calls to modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Jan 20, 2014
1 parent fcb7209 commit 2b6044a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/TestCase/Database/QueryTest.php
Expand Up @@ -1097,6 +1097,14 @@ public function testSelectModifiers() {
->modifier(['DISTINCTROW', 'SQL_NO_CACHE']);
$this->assertSame('SELECT DISTINCTROW SQL_NO_CACHE city, state, country FROM addresses', $result->sql());

$query = new Query($this->connection);
$result = $query
->select(['city', 'state', 'country'])
->from(['addresses'])
->modifier('DISTINCTROW')
->modifier('SQL_NO_CACHE');
$this->assertSame('SELECT DISTINCTROW SQL_NO_CACHE city, state, country FROM addresses', $result->sql());

$query = new Query($this->connection);
$result = $query
->select(['city', 'state', 'country'])
Expand Down

0 comments on commit 2b6044a

Please sign in to comment.