summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoranoy <anoymouserver+github@mailbox.org>2021-02-13 18:23:44 +0100
committeranoy <anoymouserver@users.noreply.github.com>2021-02-14 17:15:46 +0100
commit8ca7ef7e4984c0413c8a44fedc988349882c2f4d (patch)
treedd04f21ccd939f05877f9585df735c145a71375b /tests
parentb4fa772bc5f23f84fc292f5d6bf884543d2bfe51 (diff)
update sorting column
follow-up for b4fa772bc5f23f84fc292f5d6bf884543d2bfe51 (#1056) Signed-off-by: anoy <anoymouserver+github@mailbox.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Db/ItemMapperTest.php52
1 files changed, 26 insertions, 26 deletions
diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php
index 220805061..878f8c59d 100644
--- a/tests/Unit/Db/ItemMapperTest.php
+++ b/tests/Unit/Db/ItemMapperTest.php
@@ -431,7 +431,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -493,7 +493,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->exactly(3))
->method('andWhere')
->withConsecutive(
- ['items.updated_date >= :updatedSince'],
+ ['items.last_modified >= :updatedSince'],
['feeds.user_id = :userId'],
['feeds.id = :feedId']
)
@@ -510,7 +510,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -557,7 +557,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->exactly(4))
->method('andWhere')
->withConsecutive(
- ['items.updated_date >= :updatedSince'],
+ ['items.last_modified >= :updatedSince'],
['feeds.user_id = :userId'],
['feeds.id = :feedId'],
['items.unread = 1']
@@ -575,7 +575,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -625,7 +625,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->exactly(3))
->method('andWhere')
->withConsecutive(
- ['items.updated_date >= :updatedSince'],
+ ['items.last_modified >= :updatedSince'],
['feeds.user_id = :userId'],
['folders.id = :folderId']
)
@@ -642,7 +642,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -692,7 +692,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->exactly(4))
->method('andWhere')
->withConsecutive(
- ['items.updated_date >= :updatedSince'],
+ ['items.last_modified >= :updatedSince'],
['feeds.user_id = :userId'],
['folders.id = :folderId'],
['items.unread = 1']
@@ -710,7 +710,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -757,7 +757,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->exactly(3))
->method('andWhere')
->withConsecutive(
- ['items.updated_date >= :updatedSince'],
+ ['items.last_modified >= :updatedSince'],
['feeds.user_id = :userId'],
['items.unread = 1']
)
@@ -773,7 +773,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -820,7 +820,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->exactly(3))
->method('andWhere')
->withConsecutive(
- ['items.updated_date >= :updatedSince'],
+ ['items.last_modified >= :updatedSince'],
['feeds.user_id = :userId'],
['items.starred = 1']
)
@@ -836,7 +836,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -886,7 +886,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->exactly(2))
->method('andWhere')
->withConsecutive(
- ['items.updated_date >= :updatedSince'],
+ ['items.last_modified >= :updatedSince'],
['feeds.user_id = :userId']
)
->will($this->returnSelf());
@@ -901,7 +901,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -974,7 +974,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -1044,7 +1044,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -1115,7 +1115,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -1191,7 +1191,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -1262,7 +1262,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -1334,7 +1334,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -1410,7 +1410,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -1493,7 +1493,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -1577,7 +1577,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -1661,7 +1661,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'ASC')
+ ->with('items.last_modified', 'ASC')
->will($this->returnSelf());
$this->builder->expects($this->once())
@@ -1749,7 +1749,7 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->once())
->method('orderBy')
- ->with('items.updated_date', 'DESC')
+ ->with('items.last_modified', 'DESC')
->will($this->returnSelf());
$this->builder->expects($this->once())