Permalink
Browse files

Fix failing test.

  • Loading branch information...
markstory committed Nov 22, 2013
1 parent f3ca966 commit 0e7b0ad11173bb3c814eef092a2a8dfc35d29381
Showing with 14 additions and 14 deletions.
  1. +14 −14 lib/Cake/Test/Case/View/Helper/RssHelperTest.php
@@ -743,36 +743,36 @@ public function testElementNamespaceWithoutPrefix() {
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);

0 comments on commit 0e7b0ad

Please sign in to comment.