summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-04 00:21:40 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commitd275a5b9e76388b790a40576c8db3f22bd7fdc5d (patch)
tree6fe21809b3745a7941b6619353d65c8abce8d0f6 /tests
parent409c8354336b0c96842da7ba6711468aa939d76e (diff)
🩹 Patch ItemControllerTest to mock shareService
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Controller/ItemControllerTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Unit/Controller/ItemControllerTest.php b/tests/Unit/Controller/ItemControllerTest.php
index cbb5a10a9..b741df52c 100644
--- a/tests/Unit/Controller/ItemControllerTest.php
+++ b/tests/Unit/Controller/ItemControllerTest.php
@@ -84,6 +84,10 @@ class ItemControllerTest extends TestCase
$this->getMockBuilder(FeedServiceV2::class)
->disableOriginalConstructor()
->getMock();
+ $this->shareService =
+ $this->getMockBuilder(ShareService::class)
+ ->disableOriginalConstructor()
+ ->getMock();
$this->request = $this->getMockBuilder(IRequest::class)
->disableOriginalConstructor()
->getMock();