From 271777b9f5675584c46bb9bdd507353d8b5918ca Mon Sep 17 00:00:00 2001 From: nate Date: Sun, 3 Feb 2008 06:54:05 +0000 Subject: [PATCH] Adding FormHelper tests for ID generation, closes #4005 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6432 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/view/helpers/form.test.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cake/tests/cases/libs/view/helpers/form.test.php b/cake/tests/cases/libs/view/helpers/form.test.php index d214464bc..51d273f4d 100644 --- a/cake/tests/cases/libs/view/helpers/form.test.php +++ b/cake/tests/cases/libs/view/helpers/form.test.php @@ -395,6 +395,10 @@ class FormHelperTest extends CakeTestCase { $expected = '
'; $this->assertEqual($result, $expected); + $result = $this->Form->input('Contact.5.email', array('type' => 'text')); + $expected = '
'; + $this->assertEqual($result, $expected); + $result = $this->Form->input('Contact/password'); $expected = '
'; $this->assertEqual($result, $expected); @@ -549,6 +553,9 @@ class FormHelperTest extends CakeTestCase { $result = $this->Form->label('Person.first_name', ''); $this->assertEqual($result, ''); + + $result = $this->Form->label('Person.2.name', ''); + $this->assertEqual($result, ''); } function testTextbox() {