Skip to content

Commit

Permalink
Fixing another test case
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Feb 23, 2014
1 parent f02c8af commit 6a3ea54
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/TestCase/View/Helper/FormHelperTest.php
Expand Up @@ -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);
Expand Down

0 comments on commit 6a3ea54

Please sign in to comment.