From 092d51b4f111a643381c254820ed602706f27840 Mon Sep 17 00:00:00 2001 From: nate Date: Tue, 20 May 2008 04:55:04 +0000 Subject: [PATCH] Upating RssHelper test to reflect changes in XmlHelper git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6982 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/view/helpers/rss.test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/tests/cases/libs/view/helpers/rss.test.php b/cake/tests/cases/libs/view/helpers/rss.test.php index 047b603c8..e25764324 100644 --- a/cake/tests/cases/libs/view/helpers/rss.test.php +++ b/cake/tests/cases/libs/view/helpers/rss.test.php @@ -52,7 +52,7 @@ class RssTest extends UnitTestCase { $this->assertPattern('/^$/', $res); $res = $this->Rss->document(array('contrived' => 'parameter')); - $this->assertPattern('/^<\/rss>$/', $res); + $this->assertPattern('/^<\/rss>$/', $res); $res = $this->Rss->document(null, 'content'); $this->assertPattern('/^content<\/rss>$/', $res); @@ -85,7 +85,7 @@ class RssTest extends UnitTestCase { $res = $this->Rss->channel($attrib, $elements, $content); $this->assertPattern('/^/', $res); $this->assertPattern('/title<\/title>/', $res); - $this->assertPattern('/<image[^<>]+href="http:\/\/localhost">myImage<\/image>/', $res); + $this->assertPattern('/<image[^<>]+href="http:\/\/localhost"><myImage \/><\/image>/', $res); $this->assertPattern('/<link>'.str_replace('/', '\/', RssHelper::url('/', true)).'<\/link>/', $res); $this->assertPattern('/<description \/>/', $res); $this->assertPattern('/content<\/channel>$/', $res);