summaryrefslogtreecommitdiffstats
path: root/tests/unit/controller/FeedControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/controller/FeedControllerTest.php')
-rw-r--r--tests/unit/controller/FeedControllerTest.php21
1 files changed, 16 insertions, 5 deletions
diff --git a/tests/unit/controller/FeedControllerTest.php b/tests/unit/controller/FeedControllerTest.php
index 813508cef..ceed1c0b2 100644
--- a/tests/unit/controller/FeedControllerTest.php
+++ b/tests/unit/controller/FeedControllerTest.php
@@ -13,12 +13,12 @@
namespace OCA\News\Controller;
-use \OCP\AppFramework\Http;
+use OCP\AppFramework\Http;
-use \OCA\News\Db\Feed;
-use \OCA\News\Db\FeedType;
-use \OCA\News\Service\ServiceNotFoundException;
-use \OCA\News\Service\ServiceConflictException;
+use OCA\News\Db\Feed;
+use OCA\News\Db\FeedType;
+use OCA\News\Service\ServiceNotFoundException;
+use OCA\News\Service\ServiceConflictException;
class FeedControllerTest extends \PHPUnit_Framework_TestCase {
@@ -519,6 +519,17 @@ class FeedControllerTest extends \PHPUnit_Framework_TestCase {
}
+ public function testEnableFullText() {
+ $this->feedService->expects($this->once())
+ ->method('enableFullText')
+ ->with($this->equalTo(4),
+ $this->equalTo(true),
+ $this->equalTo($this->user))
+ ->will($this->returnValue(1));
+
+ $this->controller->enableFullText(4, true);
+ }
+
public function testOrderingDoesNotExist(){
$msg = 'hehe';