summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Service/ServiceTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Service/ServiceTest.php')
-rw-r--r--tests/Unit/Service/ServiceTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Unit/Service/ServiceTest.php b/tests/Unit/Service/ServiceTest.php
index 4b6c6b03d..ce4e2e61f 100644
--- a/tests/Unit/Service/ServiceTest.php
+++ b/tests/Unit/Service/ServiceTest.php
@@ -73,7 +73,7 @@ class ServiceTest extends TestCase
->method('delete')
->with($this->equalTo($folder));
$this->mapper->expects($this->once())
- ->method('find')
+ ->method('findFromUser')
->with($this->equalTo($user), $this->equalTo($id))
->will($this->returnValue($folder));
@@ -87,7 +87,7 @@ class ServiceTest extends TestCase
$user = 'ken';
$this->mapper->expects($this->once())
- ->method('find')
+ ->method('findFromUser')
->with($this->equalTo($user), $this->equalTo($id))
->will($this->returnValue(new Feed()));
@@ -100,7 +100,7 @@ class ServiceTest extends TestCase
$ex = new DoesNotExistException('hi');
$this->mapper->expects($this->once())
- ->method('find')
+ ->method('findFromUser')
->will($this->throwException($ex));
$this->expectException(ServiceNotFoundException::class);
@@ -113,7 +113,7 @@ class ServiceTest extends TestCase
$ex = new MultipleObjectsReturnedException('hi');
$this->mapper->expects($this->once())
- ->method('find')
+ ->method('findFromUser')
->will($this->throwException($ex));
$this->expectException(ServiceNotFoundException::class);