Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Re-enable tests for month() method.
  • Loading branch information
markstory committed Feb 25, 2014
1 parent 5f43d31 commit a15e091
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/TestCase/View/Helper/FormHelperTest.php
Expand Up @@ -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')),
Expand All @@ -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')),
Expand All @@ -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')),
Expand All @@ -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')),
Expand All @@ -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')),
Expand Down

0 comments on commit a15e091

Please sign in to comment.