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:
mark_story 2008-11-16 05:06:36 +00:00
parent 6c2d6dbc0e
commit f3fc8dd742

View file

@ -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',