From 319658e9d37f8a5a2d891db058d9c5205f6474dc Mon Sep 17 00:00:00 2001 From: euromark Date: Wed, 1 Aug 2012 12:48:21 +0200 Subject: [PATCH] asserting escaped output for sms protocol --- lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php b/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php index 0bb8e93bb..4b54764a2 100644 --- a/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php @@ -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); } /**