diff --git a/cake/tests/cases/libs/view/helpers/form.test.php b/cake/tests/cases/libs/view/helpers/form.test.php index 7ba9574cb..c76ed9f36 100644 --- a/cake/tests/cases/libs/view/helpers/form.test.php +++ b/cake/tests/cases/libs/view/helpers/form.test.php @@ -3486,6 +3486,28 @@ class FormHelperTest extends CakeTestCase { ); $this->assertTags($result, $expected); } +/** + * testTextAreaWithStupidCharacters method + * + * @access public + * @return void + */ + function testTextAreaWithStupidCharacters() { + $result = $this->Form->input('Post.content', array( + 'label' => 'Current Text', 'value' => "GREAT®", 'rows' => '15', 'cols' => '75' + )); + $expected = array( + 'div' => array('class' => 'input text'), + 'label' => array('for' => 'PostContent'), + 'Current Text', + '/label', + 'textarea' => array('name' => 'data[Post][content]', 'id' => 'PostContent', 'rows' => '15', 'cols' => '75'), + 'GREAT®', + '/textarea', + '/div' + ); + $this->assertTags($result, $expected); + } /** * testHiddenField method *