Adding test case for #867.

This commit is contained in:
mark_story 2010-06-28 21:32:49 -04:00
parent 4b93e61ed3
commit f11f9ebc68

View file

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