summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-16 20:42:57 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-16 20:42:57 +0200
commit04fbad4554c38a11a6f1cb3d042c85bbeab5f1ef (patch)
tree9520f5ccec2fb6e678cd82b34d790b03dfdb9530 /tests
parentd099f00e9aa1b8569f5bc8bbd3b76d1d1466cf96 (diff)
also use url in user agent
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/fetcher/FeedFetcherTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/fetcher/FeedFetcherTest.php b/tests/unit/fetcher/FeedFetcherTest.php
index 186f94e04..893fb7b2a 100644
--- a/tests/unit/fetcher/FeedFetcherTest.php
+++ b/tests/unit/fetcher/FeedFetcherTest.php
@@ -199,7 +199,9 @@ class FeedFetcherTest extends \PHPUnit_Framework_TestCase {
->with($this->equalTo($this->cacheDuration));
$this->core->expects($this->once())
->method('set_useragent')
- ->with($this->equalTo('ownCloud News/3 (+https://owncloud.org/; 1 subscriber)'));
+ ->with($this->equalTo(
+ 'ownCloud News/3 (+https://owncloud.org/; 1 subscriber; ' .
+ 'feed-url=http://tests)'));
$this->setExpectedException('\OCA\News\Fetcher\FetcherException');
$this->fetcher->fetch($this->url);
}