Restored last missing FormHelper test

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6770 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
the_undefined 2008-05-08 11:57:58 +00:00
parent 0a715f2afe
commit 075afb244a

View file

@ -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() {