summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/controller/ItemControllerTest.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/controller/ItemControllerTest.php b/tests/controller/ItemControllerTest.php
index 2b389adad..1c3ed44f0 100644
--- a/tests/controller/ItemControllerTest.php
+++ b/tests/controller/ItemControllerTest.php
@@ -228,12 +228,17 @@ class ItemControllerTest extends ControllerTestUtility {
$this->controller = $this->getPostController($post);
$this->api->expects($this->once())
+ ->method('getUserValue')
+ ->with($this->equalTo($this->user),
+ $this->equalTo('showAll'))
+ ->will($this->returnValue('true'));
+ $this->api->expects($this->once())
->method('getUserId')
->will($this->returnValue($this->user));
$this->bl->expects($this->once())
->method('findAll')
->with($post['id'], $post['type'], $post['limit'],
- $post['offset'], $this->user)
+ $post['offset'], true, $this->user)
->will($this->returnValue($result['items']));
$response = $this->controller->items();
@@ -254,12 +259,17 @@ class ItemControllerTest extends ControllerTestUtility {
$this->controller = $this->getPostController($post);
$this->api->expects($this->once())
+ ->method('getUserValue')
+ ->with($this->equalTo($this->user),
+ $this->equalTo('showAll'))
+ ->will($this->returnValue('true'));
+ $this->api->expects($this->once())
->method('getUserId')
->will($this->returnValue($this->user));
$this->bl->expects($this->once())
->method('findAllNew')
->with($post['id'], $post['type'], $post['updatedSince'],
- $this->user)
+ true, $this->user)
->will($this->returnValue($result['items']));
$response = $this->controller->items();