Skip to content

Commit

Permalink
asserting escaped output for sms protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Aug 1, 2012
1 parent b6fe8af commit 319658e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
Expand Up @@ -357,6 +357,11 @@ public function testLink() {
$result = $this->Html->link('say hello to 0123465-798', 'sms:0123465-798?body=hello there');
$expected = array('a' => array('href' => 'sms:0123465-798?body=hello there'), 'say hello to 0123465-798', '/a');
$this->assertTags($result, $expected);

$result = $this->Html->link('say hello to 0123465-798', 'sms:0123465-798?body=hello "cakephp"');
debug($result);
$expected = array('a' => array('href' => 'sms:0123465-798?body=hello "cakephp"'), 'say hello to 0123465-798', '/a');
$this->assertTags($result, $expected);
}

/**
Expand Down

0 comments on commit 319658e

Please sign in to comment.