diff options
author | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2013-12-19 04:32:34 -0800 |
---|---|---|
committer | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2013-12-19 04:32:34 -0800 |
commit | 43f86e58d2976d4c56f1921b272380b66758ae67 (patch) | |
tree | 7ec302037c8f436635387ce145b0436bfb29dd32 /tests/unit/businesslayer/FeedBusinessLayerTest.php | |
parent | 98d3328c5ea97b91faa184206799f4e7e7ccfd57 (diff) | |
parent | fd6137741f6331da70432e063a576a63f5588466 (diff) |
Merge pull request #411 from sub/issue242
Make feed title editable (FIX #242)
Diffstat (limited to 'tests/unit/businesslayer/FeedBusinessLayerTest.php')
-rw-r--r-- | tests/unit/businesslayer/FeedBusinessLayerTest.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/unit/businesslayer/FeedBusinessLayerTest.php b/tests/unit/businesslayer/FeedBusinessLayerTest.php index 5e379525d..454a4966e 100644 --- a/tests/unit/businesslayer/FeedBusinessLayerTest.php +++ b/tests/unit/businesslayer/FeedBusinessLayerTest.php @@ -459,6 +459,28 @@ class FeedBusinessLayerTest extends \OCA\AppFramework\Utility\TestUtility { } + public function testRenameFeed(){ + $feedId = 3; + $feedTitle = "New Feed Title"; + $feed = new Feed(); + $feed->setTitle("Feed Title"); + $feed->setId($feedId); + + $this->feedMapper->expects($this->once()) + ->method('find') + ->with($this->equalTo($feedId), $this->equalTo($this->user)) + ->will($this->returnValue($feed)); + + $this->feedMapper->expects($this->once()) + ->method('update') + ->with($this->equalTo($feed)); + + $this->feedBusinessLayer->rename($feedId, $feedTitle, $this->user); + + $this->assertEquals($feedTitle, $feed->getTitle()); + } + + public function testImportArticles(){ $url = 'http://owncloud/nofeed'; |