Skip to content
Permalink
Browse files

Removing test that only existed to prove that there was no conflict with

the magic HABTM inputs, which are now gone
  • Loading branch information...
lorenzo committed Feb 27, 2014
1 parent 9d657ca commit daa900211b09f17a8d6709e1c218e3b3f6567edf
Showing with 0 additions and 28 deletions.
  1. +0 −28 tests/TestCase/View/Helper/FormHelperTest.php
@@ -3040,34 +3040,6 @@ public function testInputMagicSelectChangeToRadio() {
$this->assertRegExp('/input type="radio"/', $result);
}
/**
* fields with the same name as the model should work.
*
* @return void
*/
public function testInputWithMatchingFieldAndModelName() {
$this->markTestIncomplete('Need to revisit once models work again.');
$this->Form->create('User');
$this->Form->fieldset = array(
'User' => array(
'fields' => array(
'User' => array('type' => 'text')
),
'validates' => array(),
'key' => 'id'
)
);
$this->Form->request->data['User']['User'] = 'ABC, Inc.';
$result = $this->Form->input('User', array('type' => 'text'));
$expected = array(
'div' => array('class' => 'input text'),
'label' => array('for' => 'UserUser'), 'User', '/label',
'input' => array('name' => 'User[User]', 'type' => 'text', 'id' => 'UserUser', 'value' => 'ABC, Inc.'),
'/div'
);
$this->assertTags($result, $expected);
}
/**
* testFormInputs method
*

0 comments on commit daa9002

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