mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
Adding test case for #867.
This commit is contained in:
parent
4b93e61ed3
commit
f11f9ebc68
1 changed files with 13 additions and 0 deletions
|
@ -2021,6 +2021,19 @@ class FormHelperTest extends CakeTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* test input name with leading integer, ensure attributes are generated correctly.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function testInputWithLeadingInteger() {
|
||||
$result = $this->Form->text('0.Node.title');
|
||||
$expected = array(
|
||||
'input' => array('name' => 'data[0][Node][title]', 'id' => '0NodeTitle', 'type' => 'text')
|
||||
);
|
||||
$this->assertTags($result, $expected);
|
||||
}
|
||||
|
||||
/**
|
||||
* test form->input() with select type inputs.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue