Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix test for HtmlHelper::link

  • Loading branch information...
commit d2315ef35b203ecf198c9b6efcb5872bb6c60619 1 parent 0c0135f
@CauanCabral CauanCabral authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
View
7 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);
Please sign in to comment.
Something went wrong with that request. Please try again.