From a72ed5f93f430ffb94ea87c5487e9e8ec0dd9642 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 12 May 2014 22:57:53 +0200 Subject: remove dead code --- tests/unit/businesslayer/FeedBusinessLayerTest.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3