From 517e4ca5435106ab5304849248cbea4e9dffd4b0 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 19 Apr 2014 13:20:54 +0200 Subject: split up api class for easier testing and clearer code --- tests/unit/fetcher/FeedFetcherTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/unit/fetcher/FeedFetcherTest.php') diff --git a/tests/unit/fetcher/FeedFetcherTest.php b/tests/unit/fetcher/FeedFetcherTest.php index 392d0972c..7972a47b1 100644 --- a/tests/unit/fetcher/FeedFetcherTest.php +++ b/tests/unit/fetcher/FeedFetcherTest.php @@ -31,7 +31,7 @@ use \OCA\News\Db\Feed; require_once(__DIR__ . "/../../classloader.php"); -class FeedFetcherTest extends \OCA\News\Utility\TestUtility { +class FeedFetcherTest extends \PHPUnit_Framework_TestCase { private $fetcher; private $core; @@ -128,8 +128,7 @@ class FeedFetcherTest extends \OCA\News\Utility\TestUtility { $this->config->expects($this->any()) ->method('getFeedFetcherTimeout') ->will($this->returnValue($this->fetchTimeout)); - $this->fetcher = new FeedFetcher($this->getAPIMock(), - $this->coreFactory, + $this->fetcher = new FeedFetcher($this->coreFactory, $this->faviconFetcher, $timeFactory, $this->cacheDirectory, -- cgit v1.2.3