Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding tests for GH-57

  • Loading branch information...
commit 877c874f4946ba9b005ab3efd6a3d3eaf53164fc 1 parent 922595c
@markstory markstory authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 cake/tests/cases/libs/view/helpers/form.test.php
View
7 cake/tests/cases/libs/view/helpers/form.test.php
@@ -1928,6 +1928,13 @@ function testInputTime() {
$this->assertPattern('#<option value="15"[^>]*>15</option>#', $result[1]);
$this->assertPattern('#<option value="30"[^>]*>30</option>#', $result[1]);
+ $result = $this->Form->input('Random.start_time', array(
+ 'type' => 'time',
+ 'selected' => '18:15'
+ ));
+
+ $this->assertPattern('#<option value="6"[^>]*>6</option>#', $result[1]);
+ $this->assertPattern('#<option value="15"[^>]*>15</option>#', $result[1]);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.