diff options
Diffstat (limited to 'tests/Unit/Controller/ExportControllerTest.php')
-rw-r--r-- | tests/Unit/Controller/ExportControllerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
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(); |