mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
0a715f2afe
commit
075afb244a
1 changed files with 12 additions and 22 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue