From 79032a17fb1f458aae723098ddc1a96c28daad05 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 30 May 2014 00:06:49 +0200 Subject: add autopaging --- tests/unit/controller/ItemControllerTest.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/unit') diff --git a/tests/unit/controller/ItemControllerTest.php b/tests/unit/controller/ItemControllerTest.php index 4b57068a9..59bb7681b 100644 --- a/tests/unit/controller/ItemControllerTest.php +++ b/tests/unit/controller/ItemControllerTest.php @@ -87,6 +87,21 @@ class ItemControllerTest extends \PHPUnit_Framework_TestCase { } + public function testReadMultiple() { + $this->itemService->expects($this->at(0)) + ->method('read') + ->with($this->equalTo(2), + $this->equalTo(true), + $this->equalTo($this->user)); + $this->itemService->expects($this->at(1)) + ->method('read') + ->with($this->equalTo(4), + $this->equalTo(true), + $this->equalTo($this->user)); + $this->controller->readMultiple([2, 4]); + } + + public function testStar(){ $this->itemService->expects($this->once()) ->method('star') -- cgit v1.2.3