Skip to content

Commit

Permalink
fix: tests setting http last modified
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Vidulich <ben@vidulich.nz>
  • Loading branch information
zl4bv committed Sep 29, 2024
1 parent fb97832 commit c66c9f0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/Unit/Fetcher/FeedFetcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public function testFetchAccount()
false,
'account@email.com',
'F9sEU*Rt%:KFK8HMHT&',
$this->modified->format(DateTime::RSS)
null
);

$this->assertEquals([$feed, [$item]], $result);
Expand Down Expand Up @@ -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));
Expand All @@ -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');
Expand Down

0 comments on commit c66c9f0

Please sign in to comment.