diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2021-05-04 21:05:27 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2021-05-27 19:12:55 +0200 |
commit | 74f09ee7160c6ec1d2e67e47b91e96ec863be455 (patch) | |
tree | b4a708684cad3c07972b6b52ec5feaabb7e4f386 /tests/Unit | |
parent | 2159eccbf199703a60636d517b0645b771e8bb0a (diff) |
db: no longer order by items.last_modified
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'tests/Unit')
-rw-r--r-- | tests/Unit/Db/ItemMapperAfterTest.php | 16 | ||||
-rw-r--r-- | tests/Unit/Db/ItemMapperTest.php | 2 |
2 files changed, 9 insertions, 9 deletions
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()); |