summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Controller/FeedApiControllerTest.php
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2021-01-18 19:56:26 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-01-18 20:15:13 +0100
commit582c4d11facc0c8c97ae14d370b6c4f69b210124 (patch)
tree6fea68f1918e2f05ca140e716cf18b3d7d8993c2 /tests/Unit/Controller/FeedApiControllerTest.php
parent8e0a8fc1d2d0f92ea7f02795eb144f3a8a977d80 (diff)
Controllers: Fetch feed after creating
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit/Controller/FeedApiControllerTest.php')
-rw-r--r--tests/Unit/Controller/FeedApiControllerTest.php8
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('')));