diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-23 12:27:36 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-23 12:27:36 +0100 |
commit | f4f27ab927f16d7ff8900e92ecf7aee75f355f34 (patch) | |
tree | 735ec22ea9c28fb65faa9066aa77e0b92f1ca24a /tests | |
parent | 262084122f735abc78f7e767870b0e6c10844a7a (diff) |
also pass in showall value to items
Diffstat (limited to 'tests')
-rw-r--r-- | tests/controller/ItemControllerTest.php | 14 |
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(); |