Adding FormHelper test to disprove ticket #5184

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7406 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2008-08-01 05:39:53 +00:00
parent f5977baeb5
commit 22edda11ad

View file

@ -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
*