Skip to content
Permalink
Browse files

Fix previously skipped test.

  • Loading branch information...
markstory committed Feb 26, 2014
1 parent 199a1b4 commit b725a01f570526c169012d8d62069a73cddf87b4
Showing with 7 additions and 8 deletions.
  1. +7 −8 tests/TestCase/View/Helper/FormHelperTest.php
@@ -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.');
}
/**

0 comments on commit b725a01

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