diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-08-10 20:20:30 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-08-12 17:05:18 +0200 |
commit | 53679811da855acf9bd944a389a48399ca5d5a15 (patch) | |
tree | fa75e06a965fb5751017288a5c135bc179574210 /tests/unit/controller/FeedControllerTest.php | |
parent | c77a6705d34c81cb933f3d4b83eb18e2b586035a (diff) |
serverside full text
remove enhancers
add full text client side implementation
fix bugs and tests for full text feed
Diffstat (limited to 'tests/unit/controller/FeedControllerTest.php')
-rw-r--r-- | tests/unit/controller/FeedControllerTest.php | 21 |
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'; |