From 04fbad4554c38a11a6f1cb3d042c85bbeab5f1ef Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 16 Sep 2014 20:42:57 +0200 Subject: also use url in user agent --- tests/unit/fetcher/FeedFetcherTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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); } -- cgit v1.2.3