diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 23:45:06 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 23:45:06 +0200 |
commit | fb28fadcf6e71b4b797aa4241436ec3add543ba0 (patch) | |
tree | 01b2e19338badfa89be45c8a90c4b391b8cd6119 /tests/unit/fetcher | |
parent | 976cd93e3c9aef7734792ba6b53f15621c5b6c91 (diff) |
get rid of faviconfetcher and use picofeed
Diffstat (limited to 'tests/unit/fetcher')
-rw-r--r-- | tests/unit/fetcher/FeedFetcherTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/fetcher/FeedFetcherTest.php b/tests/unit/fetcher/FeedFetcherTest.php index 2d31fb18a..ff1581082 100644 --- a/tests/unit/fetcher/FeedFetcherTest.php +++ b/tests/unit/fetcher/FeedFetcherTest.php @@ -83,7 +83,7 @@ class FeedFetcherTest extends \PHPUnit_Framework_TestCase { ->disableOriginalConstructor() ->getMock(); $this->faviconFetcher = $this->getMockBuilder( - '\OCA\News\Utility\FaviconFetcher') + '\PicoFeed\Favicon') ->disableOriginalConstructor() ->getMock(); $this->appconfig = $this->getMockBuilder( @@ -106,7 +106,7 @@ class FeedFetcherTest extends \PHPUnit_Framework_TestCase { ->disableOriginalConstructor() ->getMock(); $this->config->expects($this->any()) - ->method('getSimplePieCacheDuration') + ->method('getCacheDuration') ->will($this->returnValue($this->cacheDuration)); $this->config->expects($this->any()) ->method('getProxyHost') @@ -317,7 +317,7 @@ class FeedFetcherTest extends \PHPUnit_Framework_TestCase { if($hasWebFavicon) { $this->faviconFetcher->expects($this->once()) - ->method('fetch') + ->method('find') ->with($this->equalTo($this->feedLink)) ->will($this->returnValue($this->webFavicon)); $feed->setFaviconLink($this->webFavicon); @@ -425,7 +425,7 @@ class FeedFetcherTest extends \PHPUnit_Framework_TestCase { ->will($this->returnValue(true)); $this->faviconFetcher->expects($this->once()) - ->method('fetch') + ->method('find') ->will($this->returnValue($this->webFavicon)); $item = $this->createItem(false, 'video/ogg'); |