summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2019-03-11 22:36:00 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2019-03-12 13:30:05 +0100
commit9d5ac4b039ecb8f0dd37ede8bc0ae771f1580903 (patch)
treef91d90b0947e1842ee18cc6d68490911ddcc1cbe /tests
parent21b75aadd57c33e70a7b443eb20c096436c0f169 (diff)
Catch FeedIO reader exception.
Closes #413 Closes #412
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Service/FeedServiceTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/Unit/Service/FeedServiceTest.php b/tests/Unit/Service/FeedServiceTest.php
index 9b0c50b20..149b3cdaf 100644
--- a/tests/Unit/Service/FeedServiceTest.php
+++ b/tests/Unit/Service/FeedServiceTest.php
@@ -14,6 +14,8 @@
namespace OCA\News\Tests\Unit\Service;
+use FeedIo\Reader\ReadErrorException;
+
use OCA\News\Config\Config;
use OCA\News\Db\FeedMapper;
use OCA\News\Db\ItemMapper;
@@ -114,7 +116,7 @@ class FeedServiceTest extends TestCase
public function testCreateDoesNotFindFeed()
{
- $ex = new FetcherException('hi');
+ $ex = new ReadErrorException('hi');
$url = 'test';
$this->fetcher->expects($this->once())
->method('fetch')
@@ -581,7 +583,7 @@ class FeedServiceTest extends TestCase
$exptectedFeed->setUpdateErrorCount(1);
$exptectedFeed->setLastUpdateError('hi');
- $ex = new FetcherException('hi');
+ $ex = new ReadErrorException('hi');
$this->feedMapper->expects($this->at(0))
->method('find')