Skip to content
Permalink
Browse files

adding html helper tests for special protocols

  • Loading branch information...
dereuromark committed Aug 1, 2012
1 parent b73be31 commit f0ffe098d3b19da3a03a050cf95db619d398dfd0
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
@@ -337,6 +337,14 @@ public function testLink() {
$result = $this->Html->link('http://www.example.org?param1=value1&param2=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);
}
/**

0 comments on commit f0ffe09

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