summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Fetcher/FeedFetcherTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Fetcher/FeedFetcherTest.php')
-rw-r--r--tests/Unit/Fetcher/FeedFetcherTest.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/Unit/Fetcher/FeedFetcherTest.php b/tests/Unit/Fetcher/FeedFetcherTest.php
index 930cf4c99..ce09bb0e3 100644
--- a/tests/Unit/Fetcher/FeedFetcherTest.php
+++ b/tests/Unit/Fetcher/FeedFetcherTest.php
@@ -15,6 +15,8 @@ namespace OCA\News\Fetcher;
use \OCA\News\Db\Item;
use \OCA\News\Db\Feed;
+use OCP\Http\Client\IClientService;
+use PicoFeed\Processor\ItemPostProcessor;
class FeedFetcherTest extends \PHPUnit_Framework_TestCase {
@@ -97,11 +99,19 @@ class FeedFetcherTest extends \PHPUnit_Framework_TestCase {
$timeFactory->expects($this->any())
->method('getTime')
->will($this->returnValue($this->time));
+ $postProcessor = $this->getMockBuilder(ItemPostProcessor::class)
+ ->getMock();
+ $this->parser->expects($this->any())
+ ->method('getItemPostProcessor')
+ ->will($this->returnValue($postProcessor));
+ $clientService = $this->getMockBuilder(IClientService::class)
+ ->getMock();
$this->fetcher = new FeedFetcher(
$this->reader,
$this->faviconFactory,
$this->l10n,
- $timeFactory);
+ $timeFactory,
+ $clientService);
$this->url = 'http://tests';
$this->permalink = 'http://permalink';