Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moving time tests into a separate method.

  • Loading branch information...
commit 922595c77a3494540e4a95447fa4c60a34055b24 1 parent 1cdf55f
@markstory markstory authored
Showing with 11 additions and 3 deletions.
  1. +11 −3 cake/tests/cases/libs/view/helpers/form.test.php
View
14 cake/tests/cases/libs/view/helpers/form.test.php
@@ -1887,11 +1887,10 @@ function testInputCheckbox() {
}
/**
- * 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 @@ function testInputDatetime() {
$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
Please sign in to comment.
Something went wrong with that request. Please try again.