Skip to content
Permalink
Browse files

Fix test for HtmlHelper::link

  • Loading branch information...
CauanCabral committed Jan 18, 2012
1 parent 0c0135f commit d2315ef35b203ecf198c9b6efcb5872bb6c60619
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
@@ -315,18 +315,19 @@ public function testLink() {
Configure::write('Asset.timestamp', 'force');
$result = $this->Html->link($this->Html->image('../favicon.ico'), '#', array('escape' => false));
$result = $this->Html->link($this->Html->image('../favicon.ico'), '#', array('escape' => false));
$expected = array(
'a' => array('href' => '#'),
'img' => array('src' => 'preg:/img\/..\/favicon\.ico\?\d*/', 'alt' => ''),
'img' => array('src' => 'img/../favicon.ico', 'alt' => ''),
'/a'
);
$this->assertTags($result, $expected);
$result = $this->Html->image('../favicon.ico', array('url' => '#'));
$expected = array(
'a' => array('href' => '#'),
'img' => array('src' => 'preg:/img\/..\/favicon\.ico\?\d*/', 'alt' => ''),
'img' => array('src' => 'img/../favicon.ico', 'alt' => ''),
'/a'
);
$this->assertTags($result, $expected);

0 comments on commit d2315ef

Please sign in to comment.
You can’t perform that action at this time.