mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fix test for HtmlHelper::link
This commit is contained in:
parent
0c0135ff5e
commit
d2315ef35b
1 changed files with 4 additions and 3 deletions
|
@ -315,18 +315,19 @@ class HtmlHelperTest extends CakeTestCase {
|
|||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue