From 66b4005b5ee832410742ee8ca3f07031dee38189 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Tue, 2 Feb 2021 13:31:22 +0100 Subject: Controllers: Export Starred or unread instead of and Fixes GH-1010 Signed-off-by: Sean Molenaar --- tests/Unit/Controller/ExportControllerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/Unit/Controller/ExportControllerTest.php b/tests/Unit/Controller/ExportControllerTest.php index 1565daf81..cb21822be 100644 --- a/tests/Unit/Controller/ExportControllerTest.php +++ b/tests/Unit/Controller/ExportControllerTest.php @@ -141,10 +141,10 @@ class ExportControllerTest extends TestCase ->method('findAllForUser') ->with('user') ->will($this->returnValue($feeds)); - $this->itemService->expects($this->once()) + $this->itemService->expects($this->exactly(2)) ->method('findAllForUser') - ->with('user', ['unread' => true, 'starred' => true]) - ->will($this->returnValue($articles)); + ->withConsecutive(['user', ['unread' => false, 'starred' => true]], ['user', ['unread' => true]]) + ->willReturnOnConsecutiveCalls($articles, []); $return = $this->controller->articles(); -- cgit v1.2.3