summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-04 22:07:17 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit88fa9886aeb8795d298bd021c3dc4e2f1f98dc98 (patch)
treef84b4eeffa9879d95f69a9ef7486699831105496 /tests
parent1a582f2a7a125d3d9c5c4c295132acb25d1ae03b (diff)
✅ Update ItemController share tests
- use ShareService and shareItemWithUser function Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Controller/ItemControllerTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Unit/Controller/ItemControllerTest.php b/tests/Unit/Controller/ItemControllerTest.php
index b741df52c..0eae52a39 100644
--- a/tests/Unit/Controller/ItemControllerTest.php
+++ b/tests/Unit/Controller/ItemControllerTest.php
@@ -140,8 +140,8 @@ class ItemControllerTest extends TestCase
public function testShare()
{
- $this->itemService->expects($this->once())
- ->method('share')
+ $this->shareService->expects($this->once())
+ ->method('shareItemWithUser')
->with('user', 4, 'test');
$this->controller->share(4, 'test');
@@ -152,8 +152,8 @@ class ItemControllerTest extends TestCase
{
$msg = 'hi';
- $this->itemService->expects($this->once())
- ->method('share')
+ $this->shareService->expects($this->once())
+ ->method('shareItemWithUser')
->with('user', 4, 'test')
->will($this->throwException(new ServiceNotFoundException($msg)));