summaryrefslogtreecommitdiffstats
path: root/tests/unit/controller/FeedControllerTest.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-09-06 15:42:51 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2015-09-06 15:42:51 +0200
commit70ff47a9b77797e75137ba02f0b7df9bc2745f56 (patch)
treeaef60c640494dc3996ae565ce6f4b74cc2dee572 /tests/unit/controller/FeedControllerTest.php
parent5323fa1fb1bd43ef653a91f5bba6d63cd18078f3 (diff)
fix # 848
Diffstat (limited to 'tests/unit/controller/FeedControllerTest.php')
-rw-r--r--tests/unit/controller/FeedControllerTest.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit/controller/FeedControllerTest.php b/tests/unit/controller/FeedControllerTest.php
index ceed1c0b2..80f2c805f 100644
--- a/tests/unit/controller/FeedControllerTest.php
+++ b/tests/unit/controller/FeedControllerTest.php
@@ -530,6 +530,19 @@ class FeedControllerTest extends \PHPUnit_Framework_TestCase {
$this->controller->enableFullText(4, true);
}
+
+ public function testPinned() {
+ $this->feedService->expects($this->once())
+ ->method('setPinned')
+ ->with($this->equalTo(4),
+ $this->equalTo(true),
+ $this->equalTo($this->user))
+ ->will($this->returnValue(1));
+
+ $this->controller->pinned(4, true);
+ }
+
+
public function testOrderingDoesNotExist(){
$msg = 'hehe';