Browse files

Re-enable tests for month() method.

  • Loading branch information...
1 parent 5f43d31 commit a15e091c5ca42281af423d5d025e896490fbf35f @markstory markstory committed Feb 22, 2014
Showing with 5 additions and 6 deletions.
  1. +5 −6 tests/TestCase/View/Helper/FormHelperTest.php
View
11 tests/TestCase/View/Helper/FormHelperTest.php
@@ -5423,10 +5423,9 @@ public function testDateTimeLabelIdMatchesFirstInput() {
* @return void
*/
public function testMonth() {
- $this->markTestIncomplete('Need to revisit once models work again.');
$result = $this->Form->month('Model.field');
$expected = array(
- array('select' => array('name' => 'Model[field][month]', 'id' => 'ModelFieldMonth')),
+ array('select' => array('name' => 'Model[field][month]')),
array('option' => array('value' => '')),
'/option',
array('option' => array('value' => '01')),
@@ -5441,7 +5440,7 @@ public function testMonth() {
$result = $this->Form->month('Model.field', array('empty' => true));
$expected = array(
- array('select' => array('name' => 'Model[field][month]', 'id' => 'ModelFieldMonth')),
+ array('select' => array('name' => 'Model[field][month]')),
array('option' => array('value' => '')),
'/option',
array('option' => array('value' => '01')),
@@ -5456,7 +5455,7 @@ public function testMonth() {
$result = $this->Form->month('Model.field', array('monthNames' => false));
$expected = array(
- array('select' => array('name' => 'Model[field][month]', 'id' => 'ModelFieldMonth')),
+ array('select' => array('name' => 'Model[field][month]')),
array('option' => array('value' => '')),
'/option',
array('option' => array('value' => '01')),
@@ -5474,7 +5473,7 @@ public function testMonth() {
'07' => 'Jul', '08' => 'Aug', '09' => 'Sep', '10' => 'Oct', '11' => 'Nov', '12' => 'Dec');
$result = $this->Form->month('Model.field', array('monthNames' => $monthNames));
$expected = array(
- array('select' => array('name' => 'Model[field][month]', 'id' => 'ModelFieldMonth')),
+ array('select' => array('name' => 'Model[field][month]')),
array('option' => array('value' => '')),
'/option',
array('option' => array('value' => '01')),
@@ -5491,7 +5490,7 @@ public function testMonth() {
$result = $this->Form->month('Project.release');
$expected = array(
- array('select' => array('name' => 'Project[release][month]', 'id' => 'ProjectReleaseMonth')),
+ array('select' => array('name' => 'Project[release][month]')),
array('option' => array('value' => '')),
'/option',
array('option' => array('value' => '01')),

0 comments on commit a15e091

Please sign in to comment.