Skip to content

Commit

Permalink
Issue #176 add test for reported case - passes
Browse files Browse the repository at this point in the history
  • Loading branch information
treffynnon committed Jan 23, 2014
1 parent 11e9641 commit 3fbafbe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,5 +550,11 @@ public function testIssue90UsingSetExprAloneDoesTriggerQueryGeneration() {
$expected = "UPDATE `widget` SET `added` = NOW() WHERE `id` = '1'";
$this->assertEquals($expected, ORM::get_last_query());
}

public function testIssue176LimitDoesntWorkFirstTime() {
$rs = ORM::for_table('position')->limit(1)->find_array();
$expected = "SELECT * FROM `position` LIMIT 1";
$this->assertEquals($expected, ORM::get_last_query());
}
}

0 comments on commit 3fbafbe

Please sign in to comment.