From a0184d2b41c770f37fa49f9b2e5865dd60c49103 Mon Sep 17 00:00:00 2001 From: dho Date: Thu, 14 Jun 2007 15:03:10 +0000 Subject: [PATCH] Adding test to disprove ticket #2763 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5276 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/view/helpers/form.test.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cake/tests/cases/libs/view/helpers/form.test.php b/cake/tests/cases/libs/view/helpers/form.test.php index d6a04fde1..93093d5dc 100644 --- a/cake/tests/cases/libs/view/helpers/form.test.php +++ b/cake/tests/cases/libs/view/helpers/form.test.php @@ -827,6 +827,10 @@ class FormHelperTest extends CakeTestCase { $result = $this->Form->checkbox('Model.field', array('id'=>'theID', 'value' => 'myvalue')); $this->assertEqual($result, ''); + $this->Form->validationErrors['Model']['field'] = 0; + $result = $this->Form->checkbox('Model.field', array('value' => 'myvalue')); + $this->assertEqual($result, ''); + $this->Form->validationErrors['Model']['field'] = 1; $this->Form->data['Contact']['published'] = 1; $result = $this->Form->checkbox('Contact.published', array('id'=>'theID'));