From 70ff47a9b77797e75137ba02f0b7df9bc2745f56 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sun, 6 Sep 2015 15:42:51 +0200 Subject: fix # 848 --- tests/unit/controller/FeedControllerTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/unit/controller/FeedControllerTest.php') 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'; -- cgit v1.2.3