Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix previously skipped test.
  • Loading branch information
markstory committed Feb 26, 2014
1 parent 199a1b4 commit b725a01
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tests/TestCase/View/Helper/FormHelperTest.php
Expand Up @@ -6426,17 +6426,16 @@ public function testSubmitImageTimestamp() {
* @return void
*/
public function testDateTimeWithGetForms() {
$this->markTestIncomplete('Need to revisit once models work again.');
extract($this->dateRegex);
$this->Form->create('Contact', array('type' => 'get'));
$this->Form->create($this->article, array('type' => 'get'));
$result = $this->Form->datetime('created');

$this->assertRegExp('/name="created\[year\]"/', $result, 'year name attribute is wrong.');
$this->assertRegExp('/name="created\[month\]"/', $result, 'month name attribute is wrong.');
$this->assertRegExp('/name="created\[day\]"/', $result, 'day name attribute is wrong.');
$this->assertRegExp('/name="created\[hour\]"/', $result, 'hour name attribute is wrong.');
$this->assertRegExp('/name="created\[min\]"/', $result, 'min name attribute is wrong.');
$this->assertRegExp('/name="created\[meridian\]"/', $result, 'meridian name attribute is wrong.');
$this->assertContains('name="created[year]"', $result, 'year name attribute is wrong.');
$this->assertContains('name="created[month]"', $result, 'month name attribute is wrong.');
$this->assertContains('name="created[day]"', $result, 'day name attribute is wrong.');
$this->assertContains('name="created[hour]"', $result, 'hour name attribute is wrong.');
$this->assertContains('name="created[minute]"', $result, 'min name attribute is wrong.');
$this->assertContains('name="created[meridian]"', $result, 'meridian name attribute is wrong.');
}

/**
Expand Down

0 comments on commit b725a01

Please sign in to comment.