From 075afb244a51876ce54f6ab5c70995ace201210c Mon Sep 17 00:00:00 2001 From: the_undefined Date: Thu, 8 May 2008 11:57:58 +0000 Subject: [PATCH] Restored last missing FormHelper test git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6770 3807eeeb-6ff5-0310-8944-8be069107fe0 --- .../cases/libs/view/helpers/form.test.php | 34 +++++++------------ 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/cake/tests/cases/libs/view/helpers/form.test.php b/cake/tests/cases/libs/view/helpers/form.test.php index d63109f5f..12b25d614 100644 --- a/cake/tests/cases/libs/view/helpers/form.test.php +++ b/cake/tests/cases/libs/view/helpers/form.test.php @@ -1100,30 +1100,20 @@ class FormHelperTest extends CakeTestCase { 'first', '!label', '!div', - 'preg:/.+/' + array('div' => array('class' => 'checkbox')), + array('input' => array('type' => 'checkbox', 'name' => 'data[Model][multi_field][]', 'checked' => 'checked', 'value' => '1', 'id' => 'ModelMultiField1')), + array('label' => array('for' => 'ModelMultiField1', 'class' => 'selected')), + 'second', + '!label', + '!div', + array('div' => array('class' => 'checkbox')), + array('input' => array('type' => 'checkbox', 'name' => 'data[Model][multi_field][]', 'value' => '2', 'id' => 'ModelMultiField2')), + array('label' => array('for' => 'ModelMultiField2')), + 'third', + '!label', + '!div', ); $this->assertTags($result, $expected); - // $expected = array( - // 'preg:/[^<]+/', - // array('div' => array('class' => 'checkbox')), - // array('input' => array('type' => 'checkbox', 'name' => 'data[Model][multi_field][]', 'checked' => 'checked', 'value' => '1', 'id' => 'ModelMultiField1')), - // array('label' => array('for' => 'ModelMultiField1', 'class' => 'selected')), - // 'second', - // '!label', - // '!div', - // 'preg:/.+/' - // ); - // $this->assertTags($result, $expected); - // $expected = array( - // 'preg:/[^<]+/', - // array('div' => array('class' => 'checkbox')), - // array('input' => array('type' => 'checkbox', 'name' => 'data[Model][multi_field][]', 'value' => '2', 'id' => 'ModelMultiField2')), - // array('label' => array('for' => 'ModelMultiField2')), - // 'third', - // '!label', - // '!div' - // ); - // $this->assertTags($result, $expected); } function testLabel() {