From 10d76fff64363ea59d916b550854cf3540dadfbc Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 14 May 2014 20:22:53 +0200 Subject: fix operator for paging --- tests/unit/db/ItemMapperTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3