mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
adding a test for the yet untested javascript protocol
This commit is contained in:
parent
f0ffe098d3
commit
2a674fc461
1 changed files with 4 additions and 0 deletions
|
@ -338,6 +338,10 @@ class HtmlHelperTest extends CakeTestCase {
|
|||
$expected = array('a' => array('href' => 'http://www.example.org?param1=value1&param2=value2'), 'http://www.example.org?param1=value1&param2=value2', '/a');
|
||||
$this->assertTags($result, $expected);
|
||||
|
||||
$result = $this->Html->link('alert', 'javascript:alert(\'cakephp\');');
|
||||
$expected = array('a' => array('href' => 'javascript:alert('cakephp');'), 'alert', '/a');
|
||||
$this->assertTags($result, $expected);
|
||||
|
||||
$result = $this->Html->link('write me', 'mailto:example@cakephp.org');
|
||||
$expected = array('a' => array('href' => 'mailto:example@cakephp.org'), 'write me', '/a');
|
||||
$this->assertTags($result, $expected);
|
||||
|
|
Loading…
Add table
Reference in a new issue