mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
adding html helper tests for special protocols
This commit is contained in:
parent
b73be3139f
commit
f0ffe098d3
1 changed files with 8 additions and 0 deletions
|
@ -337,6 +337,14 @@ class HtmlHelperTest extends CakeTestCase {
|
|||
$result = $this->Html->link('http://www.example.org?param1=value1¶m2=value2');
|
||||
$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('write me', 'mailto:example@cakephp.org');
|
||||
$expected = array('a' => array('href' => 'mailto:example@cakephp.org'), 'write me', '/a');
|
||||
$this->assertTags($result, $expected);
|
||||
|
||||
$result = $this->Html->link('call me on 0123465-798', 'tel:0123465-798');
|
||||
$expected = array('a' => array('href' => 'tel:0123465-798'), 'call me on 0123465-798', '/a');
|
||||
$this->assertTags($result, $expected);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue