diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-12-16 22:30:19 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2020-12-17 10:35:23 +0100 |
commit | 11f5904dd58cbcb45e0e3e6c466f187e30323155 (patch) | |
tree | 17e7cd35948b161a0e567dec94bb9aecbe64d895 /tests/Unit/Service/ServiceTest.php | |
parent | 7bebaab86e2676466eb9d104ec1a57cd9634c0b4 (diff) |
Fix mapper->find and empty user sessions
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'tests/Unit/Service/ServiceTest.php')
-rw-r--r-- | tests/Unit/Service/ServiceTest.php | 8 |
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); |