diff options
Diffstat (limited to 'tests/Unit/Controller/FeedControllerTest.php')
-rw-r--r-- | tests/Unit/Controller/FeedControllerTest.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/Unit/Controller/FeedControllerTest.php b/tests/Unit/Controller/FeedControllerTest.php index 2ea13b1ec..fde821088 100644 --- a/tests/Unit/Controller/FeedControllerTest.php +++ b/tests/Unit/Controller/FeedControllerTest.php @@ -137,8 +137,7 @@ class FeedControllerTest extends TestCase 'feeds' => [ ['a feed'], ], - 'starred' => 4, - 'shared' => 3 + 'starred' => 4 ]; $this->feedService->expects($this->once()) ->method('findAllForUser') @@ -152,10 +151,6 @@ class FeedControllerTest extends TestCase ->method('starred') ->with($this->uid) ->will($this->returnValue([1, 2, 3, 4])); - $this->itemService->expects($this->once()) - ->method('sharedWithUser') - ->with($this->equalTo($this->uid)) - ->will($this->returnValue([0, 1, 2])); $response = $this->class->index(); @@ -170,7 +165,6 @@ class FeedControllerTest extends TestCase ['a feed'], ], 'starred' => 2, - 'shared' => 3, 'newestItemId' => 5 ]; $this->feedService->expects($this->once()) @@ -185,10 +179,6 @@ class FeedControllerTest extends TestCase ->method('starred') ->with($this->uid) ->will($this->returnValue([1, 2])); - $this->itemService->expects($this->once()) - ->method('sharedWithUser') - ->with($this->equalTo($this->uid)) - ->will($this->returnValue([4, 5, 6])); $response = $this->class->index(); |