Skip to content
Permalink
Browse files

Adding test case for #867.

  • Loading branch information...
markstory committed Jun 29, 2010
1 parent 4b93e61 commit f11f9ebc68080f749eac1d2234baee09b05e491d
Showing with 13 additions and 0 deletions.
  1. +13 −0 cake/tests/cases/libs/view/helpers/form.test.php
@@ -2021,6 +2021,19 @@ function testInputCheckboxesInLoop() {
}
}
/**
* 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.
*

0 comments on commit f11f9eb

Please sign in to comment.
You can’t perform that action at this time.