-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: tests setting http last modified
Signed-off-by: Ben Vidulich <[email protected]>
- Loading branch information
Showing
1 changed file
with
1 addition
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -347,7 +347,7 @@ public function testFetchAccount() | |
false, | ||
'[email protected]', | ||
'F9sEU*Rt%:KFK8HMHT&', | ||
$this->modified->format(DateTime::RSS) | ||
null | ||
); | ||
|
||
$this->assertEquals([$feed, [$item]], $result); | ||
|
@@ -697,9 +697,6 @@ private function createFeed($lang = 'de-DE', $url = null) | |
$this->feed_mock->expects($this->exactly(1)) | ||
->method('getLink') | ||
->will($this->returnValue($this->feed_link)); | ||
$this->feed_mock->expects($this->exactly(2)) | ||
->method('getLastModified') | ||
->will($this->returnValue($this->modified)); | ||
$this->feed_mock->expects($this->exactly(1)) | ||
->method('getLanguage') | ||
->will($this->returnValue($lang)); | ||
|
@@ -710,7 +707,6 @@ private function createFeed($lang = 'de-DE', $url = null) | |
$feed->setLink($this->feed_link); | ||
$feed->setLocation($this->location); | ||
$feed->setUrl($url); | ||
$feed->setHttpLastModified((new DateTime('@3'))->format(DateTime::RSS)); | ||
$feed->setAdded($this->time); | ||
|
||
$feed->setFaviconLink('http://anon.google.com'); | ||
|