Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix previously skipped test.

  • Loading branch information...
commit b725a01f570526c169012d8d62069a73cddf87b4 1 parent 199a1b4
Mark Story markstory authored
Showing with 7 additions and 8 deletions.
  1. +7 −8 tests/TestCase/View/Helper/FormHelperTest.php
15 tests/TestCase/View/Helper/FormHelperTest.php
View
@@ -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.');
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.