Skip to content

Commit

Permalink
Adding test case for #867.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jun 29, 2010
1 parent 4b93e61 commit f11f9eb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cake/tests/cases/libs/view/helpers/form.test.php
Expand Up @@ -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.
*
Expand Down

0 comments on commit f11f9eb

Please sign in to comment.