asserting escaped output for sms protocol

This commit is contained in:
euromark 2012-08-01 12:48:21 +02:00
parent b6fe8af701
commit 319658e9d3

View file

@ -357,6 +357,11 @@ class HtmlHelperTest extends CakeTestCase {
$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);
}
/**