diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-27 18:21:30 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-27 18:21:30 +0100 |
commit | bf93d491cefd19fe8ab339725d4c7ce627b6308b (patch) | |
tree | 314b208df88968de1e97b13bf0be285d43252574 /tests | |
parent | d97e2b1f0e26b113f870a09c5cc3ab384f1c1d94 (diff) |
correctly save last viewed feed
Diffstat (limited to 'tests')
-rw-r--r-- | tests/controller/FeedControllerTest.php | 4 | ||||
-rw-r--r-- | tests/controller/ItemControllerTest.php | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/tests/controller/FeedControllerTest.php b/tests/controller/FeedControllerTest.php index 4ccb7bed6..d74811a07 100644 --- a/tests/controller/FeedControllerTest.php +++ b/tests/controller/FeedControllerTest.php @@ -139,11 +139,11 @@ class FeedControllerTest extends ControllerTestUtility { ->will($this->returnValue($this->user)); $this->api->expects($this->at(1)) ->method('getUserValue') - ->with($this->equalTo($this->user), $this->equalTo('lastViewedFeedId')) + ->with($this->equalTo('lastViewedFeedId')) ->will($this->returnValue($id)); $this->api->expects($this->at(2)) ->method('getUserValue') - ->with($this->equalTo($this->user), $this->equalTo('lastViewedFeedType')) + ->with($this->equalTo('lastViewedFeedType')) ->will($this->returnValue($type)); } diff --git a/tests/controller/ItemControllerTest.php b/tests/controller/ItemControllerTest.php index 6ec73f8b8..ff166128d 100644 --- a/tests/controller/ItemControllerTest.php +++ b/tests/controller/ItemControllerTest.php @@ -237,13 +237,11 @@ class ItemControllerTest extends ControllerTestUtility { ->will($this->returnValue($this->user)); $this->api->expects($this->at(2)) ->method('setUserValue') - ->with($this->equalTo($this->user), - $this->equalTo('lastViewedFeedId'), + ->with($this->equalTo('lastViewedFeedId'), $this->equalTo($id)); $this->api->expects($this->at(3)) ->method('setUserValue') - ->with($this->equalTo($this->user), - $this->equalTo('lastViewedFeedType'), + ->with($this->equalTo('lastViewedFeedType'), $this->equalTo($type)); } |