diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-12 22:57:53 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-12 22:57:53 +0200 |
commit | a72ed5f93f430ffb94ea87c5487e9e8ec0dd9642 (patch) | |
tree | aa6d7cd7b94dda3515d6e0a0e66c9e3e3f27b786 /tests | |
parent | 02bd530fc365d5627c1c6de0d3a61dc0c8b81182 (diff) |
remove dead code
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/businesslayer/FeedBusinessLayerTest.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/unit/businesslayer/FeedBusinessLayerTest.php b/tests/unit/businesslayer/FeedBusinessLayerTest.php index 1f4f4daa0..4cf0ae399 100644 --- a/tests/unit/businesslayer/FeedBusinessLayerTest.php +++ b/tests/unit/businesslayer/FeedBusinessLayerTest.php @@ -77,7 +77,6 @@ class FeedBusinessLayerTest extends \PHPUnit_Framework_TestCase { $timeFactory, $config, $this->enhancer, $this->purifier); $this->user = 'jack'; - $response = 'hi'; } @@ -317,10 +316,6 @@ class FeedBusinessLayerTest extends \PHPUnit_Framework_TestCase { $item ); - $ex = new DoesNotExistException('hi'); - - $fetchReturn = array($feed, $items); - $this->feedMapper->expects($this->any()) ->method('find') ->will($this->returnValue($existingFeed)); @@ -425,13 +420,12 @@ class FeedBusinessLayerTest extends \PHPUnit_Framework_TestCase { ->will($this->throwException($ex)); $this->setExpectedException('\OCA\News\BusinessLayer\BusinessLayerException'); - $return = $this->feedBusinessLayer->update($feed->getId(), $this->user); + $this->feedBusinessLayer->update($feed->getId(), $this->user); } public function testUpdateDoesntUpdateIfFeedIsPrevented() { $feedId = 3; - $folderId = 4; $feed = new Feed(); $feed->setFolderId(16); $feed->setId($feedId); |