Merge pull request #744 from Schlaefer/master-rss-namespace-test

Added test for RSS to allow namespace tags if namespace is specified
This commit is contained in:
Mark Story 2012-07-30 04:37:29 -07:00
commit dc7c31e7ec

View file

@ -742,7 +742,8 @@ class RssHelperTest extends CakeTestCase {
public function testElementNamespaceWithPrefix() {
$item = array(
'title' => 'Title',
'creator' => 'Alex'
'dc:creator' => 'Alex',
'xy:description' => 'descriptive words'
);
$attributes = array(
'namespace' => array(
@ -760,11 +761,16 @@ class RssHelperTest extends CakeTestCase {
),
'Title',
'/title',
'creator' => array(
'dc:creator' => array(
'xmlns:dc' => 'http://link.com'
),
'Alex',
'/creator',
'/dc:creator',
'description' => array(
'xmlns:dc' => 'http://link.com'
),
'descriptive words',
'/description',
'/item'
);
$this->assertTags($result, $expected, true);