Skip to content

Commit

Permalink
Fixing another test
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Feb 24, 2014
1 parent faf710f commit d897ba4
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions tests/TestCase/View/Helper/FormHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1271,24 +1271,19 @@ public function testTextFieldGenerationForFloats() {
* @return void
*/
public function testTextFieldTypeNumberGenerationForIntegers() {
$this->markTestIncomplete('Need to revisit once models work again.');
$model->setSchema(array('foo' => array(
'type' => 'integer',
'null' => false,
'default' => null,
'length' => null
)));

$this->Form->create('Contact');
$result = $this->Form->input('foo');
TableRegistry::get('Contacts', [
'className' => __NAMESPACE__ . '\ContactsTable'
]);
$this->Form->create([], ['context' => ['table' => 'Contacts']]);
$result = $this->Form->input('age');
$expected = array(
'div' => array('class' => 'input number'),
'label' => array('for' => 'ContactFoo'),
'Foo',
'label' => array('for' => 'age'),
'Age',
'/label',
array('input' => array(
'type' => 'number', 'name' => 'Contact[foo]',
'id' => 'ContactFoo'
'type' => 'number', 'name' => 'age',
'id' => 'age'
)),
'/div'
);
Expand Down

0 comments on commit d897ba4

Please sign in to comment.