Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tests updated for new output of FormHelper::input

Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information...
commit a3775937a4b92b9d1c5155a4df9c3892797060c4 1 parent 44d7742
@ceeram ceeram authored markstory committed
Showing with 16 additions and 16 deletions.
  1. +16 −16 cake/tests/cases/libs/view/helpers/form.test.php
View
32 cake/tests/cases/libs/view/helpers/form.test.php
@@ -3431,7 +3431,7 @@ function testDateTime() {
':',
array('select' => array('name' => 'data[Contact][date][min]', 'id' => 'ContactDateMin')),
$minutesRegex,
- array('option' => array('value' => intval(date('i', $now)), 'selected' => 'selected')),
+ array('option' => array('value' => date('i', $now), 'selected' => 'selected')),
date('i', $now),
'/option',
'*/select',
@@ -3594,10 +3594,10 @@ function testDateTime() {
$minutesRegex,
array('option' => array('value' => '')),
'/option',
- array('option' => array('value' => '0')),
+ array('option' => array('value' => '00')),
'00',
'/option',
- array('option' => array('value' => '5')),
+ array('option' => array('value' => '05')),
'05',
'/option',
array('option' => array('value' => '10')),
@@ -3643,10 +3643,10 @@ function testDateTime() {
$minutesRegex,
array('option' => array('value' => '')),
'/option',
- array('option' => array('value' => '0')),
+ array('option' => array('value' => '00')),
'00',
'/option',
- array('option' => array('value' => '5')),
+ array('option' => array('value' => '05')),
'05',
'/option',
array('option' => array('value' => '10')),
@@ -3737,7 +3737,7 @@ function testDateTime() {
':',
array('select' => array('name' => 'data[Model][field][min]', 'id' => 'ModelFieldMin')),
$minutesRegex,
- array('option' => array('value' => intval(date('i', $now)), 'selected' => 'selected')),
+ array('option' => array('value' => date('i', $now), 'selected' => 'selected')),
date('i', $now),
'/option',
'*/select',
@@ -4128,13 +4128,13 @@ function testMinute() {
array('select' => array('name' => 'data[Model][field][min]', 'id' => 'ModelFieldMin')),
array('option' => array('value' => '')),
'/option',
- array('option' => array('value' => '0')),
+ array('option' => array('value' => '00')),
'00',
'/option',
- array('option' => array('value' => '1')),
+ array('option' => array('value' => '01')),
'01',
'/option',
- array('option' => array('value' => '2')),
+ array('option' => array('value' => '02')),
'02',
'/option',
$minutesRegex,
@@ -4148,13 +4148,13 @@ function testMinute() {
array('select' => array('name' => 'data[Model][field][min]', 'id' => 'ModelFieldMin')),
array('option' => array('value' => '')),
'/option',
- array('option' => array('value' => '0')),
+ array('option' => array('value' => '00')),
'00',
'/option',
- array('option' => array('value' => '1')),
+ array('option' => array('value' => '01')),
'01',
'/option',
- array('option' => array('value' => '2')),
+ array('option' => array('value' => '02')),
'02',
'/option',
$minutesRegex,
@@ -4172,10 +4172,10 @@ function testMinute() {
array('select' => array('name' => 'data[Model][field][min]', 'id' => 'ModelFieldMin')),
array('option' => array('value' => '')),
'/option',
- array('option' => array('value' => '0')),
+ array('option' => array('value' => '00')),
'00',
'/option',
- array('option' => array('value' => '5')),
+ array('option' => array('value' => '05')),
'05',
'/option',
array('option' => array('value' => '10')),
@@ -4192,10 +4192,10 @@ function testMinute() {
array('select' => array('name' => 'data[Model][field][min]', 'id' => 'ModelFieldMin')),
array('option' => array('value' => '')),
'/option',
- array('option' => array('value' => '0')),
+ array('option' => array('value' => '00')),
'00',
'/option',
- array('option' => array('value' => '5')),
+ array('option' => array('value' => '05')),
'05',
'/option',
array('option' => array('value' => '10', 'selected' => 'selected')),
Please sign in to comment.
Something went wrong with that request. Please try again.