Skip to content
This repository
Browse code

adding html helper tests for special protocols

  • Loading branch information...
commit f0ffe098d3b19da3a03a050cf95db619d398dfd0 1 parent b73be31
Mark authored August 01, 2012
8  lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
@@ -337,6 +337,14 @@ public function testLink() {
337 337
 		$result = $this->Html->link('http://www.example.org?param1=value1&param2=value2');
338 338
 		$expected = array('a' => array('href' => 'http://www.example.org?param1=value1&param2=value2'), 'http://www.example.org?param1=value1&param2=value2', '/a');
339 339
 		$this->assertTags($result, $expected);
  340
+
  341
+		$result = $this->Html->link('write me', 'mailto:example@cakephp.org');
  342
+		$expected = array('a' => array('href' => 'mailto:example@cakephp.org'), 'write me', '/a');
  343
+		$this->assertTags($result, $expected);
  344
+
  345
+		$result = $this->Html->link('call me on 0123465-798', 'tel:0123465-798');
  346
+		$expected = array('a' => array('href' => 'tel:0123465-798'), 'call me on 0123465-798', '/a');
  347
+		$this->assertTags($result, $expected);
340 348
 	}
341 349
 
342 350
 /**

0 notes on commit f0ffe09

Please sign in to comment.
Something went wrong with that request. Please try again.