mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
f5977baeb5
commit
22edda11ad
1 changed files with 22 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue