summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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)));