Skip to content
Permalink
Browse files

test case

  • Loading branch information...
steefaan committed Dec 2, 2015
1 parent 6d87e89 commit 092cc52bf182aeb1ab38d774d412df061961e137
Showing with 11 additions and 0 deletions.
  1. +11 −0 tests/TestCase/Database/QueryTest.php
@@ -1948,6 +1948,17 @@ public function testSelectOffset()
$this->assertCount(2, $result);
$this->assertEquals(['id' => 2], $result->fetch('assoc'));
$this->assertEquals(['id' => 1], $result->fetch('assoc'));
$query = new Query($this->connection);
$query->select('id')->from('comments')
->limit(1)
->offset(1)
->execute();
$dirty = $this->readAttribute($query, '_dirty');
$this->assertFalse($dirty);
$query->offset(2);
$dirty = $this->readAttribute($query, '_dirty');
$this->assertTrue($dirty);
}
/**

0 comments on commit 092cc52

Please sign in to comment.
You can’t perform that action at this time.