mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing RssHelper test. Timezone in tests did not reflect the DST change.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7877 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
6c2d6dbc0e
commit
f3fc8dd742
1 changed files with 3 additions and 2 deletions
|
@ -297,6 +297,7 @@ class RssTest extends CakeTestCase {
|
||||||
'guid' => 'http://www.example.com/1'
|
'guid' => 'http://www.example.com/1'
|
||||||
);
|
);
|
||||||
$result = $this->Rss->item(null, $item);
|
$result = $this->Rss->item(null, $item);
|
||||||
|
|
||||||
$expected = array(
|
$expected = array(
|
||||||
'<item',
|
'<item',
|
||||||
'<title',
|
'<title',
|
||||||
|
@ -309,7 +310,7 @@ class RssTest extends CakeTestCase {
|
||||||
'<![CDATA[descriptive words]]',
|
'<![CDATA[descriptive words]]',
|
||||||
'/description',
|
'/description',
|
||||||
'<pubDate',
|
'<pubDate',
|
||||||
'Sat, 31 May 2008 12:00:00 ' . date('O'),
|
date('r', strtotime('2008-05-31 12:00:00')),
|
||||||
'/pubDate',
|
'/pubDate',
|
||||||
'<guid',
|
'<guid',
|
||||||
'http://www.example.com/1',
|
'http://www.example.com/1',
|
||||||
|
@ -451,7 +452,7 @@ class RssTest extends CakeTestCase {
|
||||||
'/description',
|
'/description',
|
||||||
'enclosure' => array('url' => RssHelper::url('/test.flv', true)),
|
'enclosure' => array('url' => RssHelper::url('/test.flv', true)),
|
||||||
'<pubDate',
|
'<pubDate',
|
||||||
'Sat, 31 May 2008 12:00:00 ' . date('O'),
|
date('r', strtotime('2008-05-31 12:00:00')),
|
||||||
'/pubDate',
|
'/pubDate',
|
||||||
'<guid',
|
'<guid',
|
||||||
'http://www.example.com/1',
|
'http://www.example.com/1',
|
||||||
|
|
Loading…
Reference in a new issue