diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-03-03 23:01:36 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | 2ee5112760d721e441abee4ededfa5484269a3c9 (patch) | |
tree | 37b241472c1dbf424acf317a0a86c93bfd54d00b /tests/Unit/Controller/FeedControllerTest.php | |
parent | 9bd27da9bac99a7780df8eb3845df566fb23b02a (diff) |
🔥 Remove old share logic from tests & old tests
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
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(); |