Skip to content
Permalink
Browse files

Fixing another test case

  • Loading branch information...
lorenzo committed Feb 23, 2014
1 parent f02c8af commit 6a3ea547feb4f427ce90acb2ed07f881c90ec8b4
Showing with 4 additions and 6 deletions.
  1. +4 −6 tests/TestCase/View/Helper/FormHelperTest.php
@@ -3389,24 +3389,22 @@ public function testInputOverridingMagicSelectType() {
* @return void
*/
public function testInputMagicTypeDoesNotOverride() {
$this->markTestIncomplete('Need to revisit once models work again.');
$this->View->viewVars['users'] = array('value' => 'good', 'other' => 'bad');
$result = $this->Form->input('Model.user', array('type' => 'checkbox'));
$expected = array(
'div' => array('class' => 'input checkbox'),
array('input' => array(
'type' => 'hidden',
'name' => 'data[Model][user]',
'id' => 'ModelUser_',
'name' => 'Model[user]',
'value' => 0,
)),
array('input' => array(
'name' => 'data[Model][user]',
'name' => 'Model[user]',
'type' => 'checkbox',
'id' => 'ModelUser',
'id' => 'model-user',
'value' => 1
)),
'label' => array('for' => 'ModelUser'), 'User', '/label',
'label' => array('for' => 'model-user'), 'User', '/label',
'/div'
);
$this->assertTags($result, $expected);

0 comments on commit 6a3ea54

Please sign in to comment.
You can’t perform that action at this time.