summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Fetcher/FeedFetcherTest.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-10-02 18:05:49 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-10-02 18:05:49 +0200
commit8d639753606e8e8a4ae14edb8fd2f37fb6b92995 (patch)
tree4b4437fad6ca3bd0c9b3dbeaca4ccf13f622961f /tests/Unit/Fetcher/FeedFetcherTest.php
parente4e226c394ccbbfd952ab38d2317d354211ead6d (diff)
revert
Diffstat (limited to 'tests/Unit/Fetcher/FeedFetcherTest.php')
-rw-r--r--tests/Unit/Fetcher/FeedFetcherTest.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/Unit/Fetcher/FeedFetcherTest.php b/tests/Unit/Fetcher/FeedFetcherTest.php
index 930cf4c99..5266f0708 100644
--- a/tests/Unit/Fetcher/FeedFetcherTest.php
+++ b/tests/Unit/Fetcher/FeedFetcherTest.php
@@ -38,7 +38,6 @@ class FeedFetcherTest extends \PHPUnit_Framework_TestCase {
private $title;
private $guid;
private $pub;
- private $updated;
private $body;
private $author;
private $enclosureLink;
@@ -111,7 +110,6 @@ class FeedFetcherTest extends \PHPUnit_Framework_TestCase {
$this->body2 = 'let the bodies hit the floor ' .
'<a target="_blank" href="test">test</a>';
$this->pub = 23111;
- $this->updated = 23444;
$this->author = '&lt;boogieman';
$this->enclosureLink = 'http://enclosure.you';
@@ -211,15 +209,11 @@ class FeedFetcherTest extends \PHPUnit_Framework_TestCase {
$item = new Item();
date_default_timezone_set('America/Los_Angeles');
-
- $pubdate = \Datetime::createFromFormat('U',$this->pub);
- $this->expectItem('getPublishedDate', $pubdate);
+ $date = new \DateTime();
+ $date->setTimestamp($this->pub);
+ $this->expectItem('getDate', $date);
$item->setPubDate($this->pub);
- $update = \Datetime::createFromFormat('U',$this->updated);
- $this->expectItem('getUpdatedDate', $update);
- $item->setUpdatedDate($this->updated);
-
$item->setStatus(0);
$item->setUnread();
$item->setUrl($this->permalink);