mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Moving time tests into a separate method.
This commit is contained in:
parent
1cdf55f8b2
commit
922595c77a
1 changed files with 11 additions and 3 deletions
|
@ -1887,11 +1887,10 @@ class FormHelperTest extends CakeTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* test form->input() with datetime, date and time types
|
||||
* test form->input() with time types.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function testInputDatetime() {
|
||||
function testInputTime() {
|
||||
extract($this->dateRegex);
|
||||
$result = $this->Form->input('Contact.created', array('type' => 'time', 'timeFormat' => 24));
|
||||
$result = explode(':', $result);
|
||||
|
@ -1929,6 +1928,15 @@ class FormHelperTest extends CakeTestCase {
|
|||
$this->assertPattern('#<option value="15"[^>]*>15</option>#', $result[1]);
|
||||
$this->assertPattern('#<option value="30"[^>]*>30</option>#', $result[1]);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* test form->input() with datetime, date and time types
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function testInputDatetime() {
|
||||
extract($this->dateRegex);
|
||||
$result = $this->Form->input('prueba', array(
|
||||
'type' => 'datetime', 'timeFormat'=> 24 , 'dateFormat'=>'DMY' , 'minYear' => 2008,
|
||||
'maxYear' => date('Y') + 1 ,'interval' => 15
|
||||
|
|
Loading…
Reference in a new issue