diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2021-02-02 13:31:22 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-02-02 16:07:38 +0100 |
commit | 66b4005b5ee832410742ee8ca3f07031dee38189 (patch) | |
tree | 90888ecf4c26e714ce8f59318e5f32d7c5f90572 /tests/Unit | |
parent | f2b74a0ba1e762185b82e92379ce9e7366230c1e (diff) |
Controllers: Export Starred or unread instead of and
Fixes GH-1010
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit')
-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(); |