diff options
Diffstat (limited to 'tests/unit/controller/FeedControllerTest.php')
-rw-r--r-- | tests/unit/controller/FeedControllerTest.php | 13 |
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'; |