diff options
Diffstat (limited to 'tests/Unit/Controller/FeedApiControllerTest.php')
-rw-r--r-- | tests/Unit/Controller/FeedApiControllerTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/Unit/Controller/FeedApiControllerTest.php b/tests/Unit/Controller/FeedApiControllerTest.php index b31d9fd43..a6a1db548 100644 --- a/tests/Unit/Controller/FeedApiControllerTest.php +++ b/tests/Unit/Controller/FeedApiControllerTest.php @@ -198,6 +198,10 @@ class FeedApiControllerTest extends TestCase ->method('create') ->with($this->userID, 'url', 3) ->will($this->returnValue($feeds[0])); + + $this->feedService->expects($this->once()) + ->method('fetch') + ->with($feeds[0]); $this->itemService->expects($this->once()) ->method('getNewestItemId') ->will($this->returnValue(3)); @@ -225,6 +229,10 @@ class FeedApiControllerTest extends TestCase ->method('create') ->with($this->userID, 'ho', 3) ->will($this->returnValue($feeds[0])); + + $this->feedService->expects($this->once()) + ->method('fetch') + ->with($feeds[0]); $this->itemService->expects($this->once()) ->method('getNewestItemId') ->will($this->throwException(new ServiceNotFoundException(''))); |