mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-06-15 11:13:36 +00:00
Merge branch 'master' into 2.5
This commit is contained in:
commit
71312932e8
4 changed files with 22 additions and 19 deletions
lib/Cake/Test/Case/View/Helper
|
@ -720,36 +720,36 @@ class RssHelperTest extends CakeTestCase {
|
|||
|
||||
public function testElementNamespaceWithPrefix() {
|
||||
$item = array(
|
||||
'title' => 'Title',
|
||||
'dc:creator' => 'Alex',
|
||||
'xy:description' => 'descriptive words'
|
||||
);
|
||||
'title' => 'Title',
|
||||
'dc:creator' => 'Alex',
|
||||
'xy:description' => 'descriptive words'
|
||||
);
|
||||
$attributes = array(
|
||||
'namespace' => array(
|
||||
'prefix' => 'dc',
|
||||
'url' => 'http://link.com'
|
||||
)
|
||||
'namespace' => array(
|
||||
'prefix' => 'dc',
|
||||
'url' => 'http://link.com'
|
||||
)
|
||||
);
|
||||
$result = $this->Rss->item($attributes, $item);
|
||||
$expected = array(
|
||||
'item' => array(
|
||||
'xmlns:dc' => 'http://link.com'
|
||||
'xmlns:dc' => 'http://link.com'
|
||||
),
|
||||
'title' => array(
|
||||
'xmlns:dc' => 'http://link.com'
|
||||
'xmlns:dc' => 'http://link.com'
|
||||
),
|
||||
'Title',
|
||||
'/title',
|
||||
'dc:creator' => array(
|
||||
'xmlns:dc' => 'http://link.com'
|
||||
'xmlns:dc' => 'http://link.com'
|
||||
),
|
||||
'Alex',
|
||||
'/dc:creator',
|
||||
'description' => array(
|
||||
'xmlns:dc' => 'http://link.com'
|
||||
'xy:description' => array(
|
||||
'xmlns:dc' => 'http://link.com'
|
||||
),
|
||||
'descriptive words',
|
||||
'/description',
|
||||
'/xy:description',
|
||||
'/item'
|
||||
);
|
||||
$this->assertTags($result, $expected, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue