summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-14 20:22:53 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-14 20:22:53 +0200
commit10d76fff64363ea59d916b550854cf3540dadfbc (patch)
tree97fffd75698701dbdd3f737ca5b9d88b908b22af /tests
parentb567d32b0e51fda52308cc3b64e8c21c969d33eb (diff)
fix operator for paging
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/db/ItemMapperTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/db/ItemMapperTest.php b/tests/unit/db/ItemMapperTest.php
index 7a855b7bb..629d7da38 100644
--- a/tests/unit/db/ItemMapperTest.php
+++ b/tests/unit/db/ItemMapperTest.php
@@ -234,7 +234,7 @@ class ItemMapperTest extends \OCP\AppFramework\Db\MapperTestUtility {
public function testFindAllFeedOldestFirst(){
$sql = 'AND `items`.`feed_id` = ? ' .
- 'AND `items`.`id` < ? ';
+ 'AND `items`.`id` > ? ';
$sql = $this->makeSelectQueryStatus($sql, $this->status, true);
$params = [$this->user, $this->id, $this->offset];
$this->setMapperResult($sql, $params, $this->rows);
@@ -272,7 +272,7 @@ class ItemMapperTest extends \OCP\AppFramework\Db\MapperTestUtility {
public function testFindAllFolderOldestFirst(){
$sql = 'AND `feeds`.`folder_id` = ? ' .
- 'AND `items`.`id` < ? ';
+ 'AND `items`.`id` > ? ';
$sql = $this->makeSelectQueryStatus($sql, $this->status, true);
$params = [$this->user, $this->id, $this->offset];
$this->setMapperResult($sql, $params, $this->rows);
@@ -308,7 +308,7 @@ class ItemMapperTest extends \OCP\AppFramework\Db\MapperTestUtility {
public function testFindAllOldestFirst(){
- $sql = 'AND `items`.`id` < ? ';
+ $sql = 'AND `items`.`id` > ? ';
$sql = $this->makeSelectQueryStatus($sql, $this->status, true);
$params = [$this->user, $this->offset];
$this->setMapperResult($sql, $params, $this->rows);