summaryrefslogtreecommitdiffstats
path: root/tests/controller/ItemControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/controller/ItemControllerTest.php')
-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 1c3ed44f0..fd1666812 100644
--- a/tests/controller/ItemControllerTest.php
+++ b/tests/controller/ItemControllerTest.php
@@ -28,8 +28,6 @@ namespace OCA\News\Controller;
use \OCA\AppFramework\Http\Request;
use \OCA\AppFramework\Http\JSONResponse;
use \OCA\AppFramework\Utility\ControllerTestUtility;
-use \OCA\AppFramework\Db\DoesNotExistException;
-use \OCA\AppFramework\Db\MultipleObjectsReturnedException;
use \OCA\News\Db\Item;
use \OCA\News\Db\FeedType;
@@ -235,6 +233,18 @@ class ItemControllerTest extends ControllerTestUtility {
$this->api->expects($this->once())
->method('getUserId')
->will($this->returnValue($this->user));
+ $this->api->expects($this->at(2))
+ ->method('setUserValue')
+ ->with($this->equalTo($this->user),
+ $this->equalTo('lastViewedFeedId'),
+ $this->equalTo($post['id']));
+ $this->api->expects($this->at(3))
+ ->method('setUserValue')
+ ->with($this->equalTo($this->user),
+ $this->equalTo('lastViewedFeedType'),
+ $this->equalTo($post['type']));
+
+
$this->bl->expects($this->once())
->method('findAll')
->with($post['id'], $post['type'], $post['limit'],