From 74f09ee7160c6ec1d2e67e47b91e96ec863be455 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Tue, 4 May 2021 21:05:27 +0200 Subject: db: no longer order by items.last_modified Signed-off-by: Sean Molenaar Signed-off-by: Benjamin Brahmer --- tests/Unit/Db/ItemMapperAfterTest.php | 16 ++++++++-------- tests/Unit/Db/ItemMapperTest.php | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/Unit') diff --git a/tests/Unit/Db/ItemMapperAfterTest.php b/tests/Unit/Db/ItemMapperAfterTest.php index 68bad19dc..9b6f02655 100644 --- a/tests/Unit/Db/ItemMapperAfterTest.php +++ b/tests/Unit/Db/ItemMapperAfterTest.php @@ -81,7 +81,7 @@ class ItemMapperAfterTest extends MapperTestUtility ]) ->will($this->returnSelf()); - $this->builder->expects($this->once()) + $this->builder->expects($this->never()) ->method('orderBy') ->with('items.last_modified', 'DESC') ->will($this->returnSelf()); @@ -152,7 +152,7 @@ class ItemMapperAfterTest extends MapperTestUtility ->with('unread', true) ->will($this->returnSelf()); - $this->builder->expects($this->once()) + $this->builder->expects($this->never()) ->method('orderBy') ->with('items.last_modified', 'DESC') ->will($this->returnSelf()); @@ -220,7 +220,7 @@ class ItemMapperAfterTest extends MapperTestUtility ]) ->will($this->returnSelf()); - $this->builder->expects($this->once()) + $this->builder->expects($this->never()) ->method('orderBy') ->with('items.last_modified', 'DESC') ->will($this->returnSelf()); @@ -294,7 +294,7 @@ class ItemMapperAfterTest extends MapperTestUtility ->with('unread', true) ->will($this->returnSelf()); - $this->builder->expects($this->once()) + $this->builder->expects($this->never()) ->method('orderBy') ->with('items.last_modified', 'DESC') ->will($this->returnSelf()); @@ -363,7 +363,7 @@ class ItemMapperAfterTest extends MapperTestUtility ->with('unread', true) ->will($this->returnSelf()); - $this->builder->expects($this->once()) + $this->builder->expects($this->never()) ->method('orderBy') ->with('items.last_modified', 'DESC') ->will($this->returnSelf()); @@ -432,7 +432,7 @@ class ItemMapperAfterTest extends MapperTestUtility ->with('starred', true) ->will($this->returnSelf()); - $this->builder->expects($this->once()) + $this->builder->expects($this->never()) ->method('orderBy') ->with('items.last_modified', 'DESC') ->will($this->returnSelf()); @@ -495,7 +495,7 @@ class ItemMapperAfterTest extends MapperTestUtility ]) ->will($this->returnSelf()); - $this->builder->expects($this->once()) + $this->builder->expects($this->never()) ->method('orderBy') ->with('items.last_modified', 'DESC') ->will($this->returnSelf()); @@ -561,7 +561,7 @@ class ItemMapperAfterTest extends MapperTestUtility ]) ->will($this->returnSelf()); - $this->builder->expects($this->once()) + $this->builder->expects($this->never()) ->method('orderBy') ->with('items.last_modified', 'DESC') ->will($this->returnSelf()); diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php index 12c022893..15ebbac1a 100644 --- a/tests/Unit/Db/ItemMapperTest.php +++ b/tests/Unit/Db/ItemMapperTest.php @@ -432,7 +432,7 @@ class ItemMapperTest extends MapperTestUtility ->with('items', 'news_feeds', 'feeds', 'items.feed_id = feeds.id') ->will($this->returnSelf()); - $this->builder->expects($this->once()) + $this->builder->expects($this->never()) ->method('orderBy') ->with('items.last_modified', 'DESC') ->will($this->returnSelf()); -- cgit v1.2.3