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 23, 2014
1 parent 5796ee9 commit 104cef5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/TestCase/View/Helper/FormHelperTest.php
Expand Up @@ -543,6 +543,7 @@ public function setUp() {
public function tearDown() {
parent::tearDown();
unset($this->Form->Html, $this->Form, $this->Controller, $this->View);
TableRegistry::clear();
}

/**
Expand Down Expand Up @@ -2662,13 +2663,15 @@ public function testInputCustomization() {
* @return void
*/
public function testInputZero() {
$this->markTestIncomplete('Need to revisit once models work again.');
$this->Form->create('User');
TableRegistry::get('Contacts', [
'className' => __NAMESPACE__ . '\ContactsTable'
]);
$this->Form->create([], ['context' => ['table' => 'Contacts']]);
$result = $this->Form->input('0');
$expected = array(
'div' => array('class' => 'input text'),
'label' => array('for' => 'User0'), '/label',
'input' => array('type' => 'text', 'name' => 'User[0]', 'id' => 'User0'),
'label' => array('for' => '0'), '/label',
'input' => array('type' => 'text', 'name' => '0', 'id' => '0'),
'/div'
);
$this->assertTags($result, $expected);
Expand Down

0 comments on commit 104cef5

Please sign in to comment.