mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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
This commit is contained in:
parent
f2231a6bcf
commit
092d51b4f1
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ class RssTest extends UnitTestCase {
|
|||
$this->assertPattern('/^<rss version="2.0" \/>$/', $res);
|
||||
|
||||
$res = $this->Rss->document(array('contrived' => 'parameter'));
|
||||
$this->assertPattern('/^<rss version="2.0"><\/rss>$/', $res);
|
||||
$this->assertPattern('/^<rss version="2.0"><parameter \/><\/rss>$/', $res);
|
||||
|
||||
$res = $this->Rss->document(null, 'content');
|
||||
$this->assertPattern('/^<rss version="2.0">content<\/rss>$/', $res);
|
||||
|
@ -85,7 +85,7 @@ class RssTest extends UnitTestCase {
|
|||
$res = $this->Rss->channel($attrib, $elements, $content);
|
||||
$this->assertPattern('/^<channel>/', $res);
|
||||
$this->assertPattern('/<title>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);
|
||||
|
|
Loading…
Add table
Reference in a new issue