diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-03-25 15:31:17 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-03-25 19:48:06 +0100 |
commit | 0d5c4e438e001ef21dfae69df4ae186b697d2efc (patch) | |
tree | 82e00390f6bac6fbcb1bb09479982167b5e792f4 /tests/unit/service | |
parent | f7520a8fe7191475668904f5f8c1816df25e2e5a (diff) |
add basic basic auth support
Diffstat (limited to 'tests/unit/service')
-rw-r--r-- | tests/unit/service/FeedServiceTest.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/unit/service/FeedServiceTest.php b/tests/unit/service/FeedServiceTest.php index 181642a45..a6cee6159 100644 --- a/tests/unit/service/FeedServiceTest.php +++ b/tests/unit/service/FeedServiceTest.php @@ -120,6 +120,8 @@ class FeedServiceTest extends \PHPUnit_Framework_TestCase { $createdFeed->setUrlHash('hsssi'); $createdFeed->setLink($url); $createdFeed->setTitle('hehoy'); + $createdFeed->setBasicAuthUser('user'); + $createdFeed->setBasicAuthPassword('pass'); $item1 = new Item(); $item1->setGuidHash('hi'); $item2 = new Item(); @@ -173,11 +175,14 @@ class FeedServiceTest extends \PHPUnit_Framework_TestCase { ->method('insert') ->with($this->equalTo($return[1][0])); - $feed = $this->feedService->create($url, $folderId, $this->user); + $feed = $this->feedService->create($url, $folderId, $this->user, null, + 'user', 'pass'); $this->assertEquals($feed->getFolderId(), $folderId); $this->assertEquals($feed->getUrl(), $url); $this->assertEquals($feed->getArticlesPerUpdate(), 2); + $this->assertEquals($feed->getBasicAuthUser(), 'user'); + $this->assertEquals($feed->getBasicAuthPassword(), 'pass'); } |