mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
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:
commit
dc7c31e7ec
1 changed files with 9 additions and 3 deletions
|
@ -742,7 +742,8 @@ class RssHelperTest extends CakeTestCase {
|
||||||
public function testElementNamespaceWithPrefix() {
|
public function testElementNamespaceWithPrefix() {
|
||||||
$item = array(
|
$item = array(
|
||||||
'title' => 'Title',
|
'title' => 'Title',
|
||||||
'creator' => 'Alex'
|
'dc:creator' => 'Alex',
|
||||||
|
'xy:description' => 'descriptive words'
|
||||||
);
|
);
|
||||||
$attributes = array(
|
$attributes = array(
|
||||||
'namespace' => array(
|
'namespace' => array(
|
||||||
|
@ -760,11 +761,16 @@ class RssHelperTest extends CakeTestCase {
|
||||||
),
|
),
|
||||||
'Title',
|
'Title',
|
||||||
'/title',
|
'/title',
|
||||||
'creator' => array(
|
'dc:creator' => array(
|
||||||
'xmlns:dc' => 'http://link.com'
|
'xmlns:dc' => 'http://link.com'
|
||||||
),
|
),
|
||||||
'Alex',
|
'Alex',
|
||||||
'/creator',
|
'/dc:creator',
|
||||||
|
'description' => array(
|
||||||
|
'xmlns:dc' => 'http://link.com'
|
||||||
|
),
|
||||||
|
'descriptive words',
|
||||||
|
'/description',
|
||||||
'/item'
|
'/item'
|
||||||
);
|
);
|
||||||
$this->assertTags($result, $expected, true);
|
$this->assertTags($result, $expected, true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue