Skip to content
This repository
Browse code

Adding tests for GH-57

  • Loading branch information...
commit 877c874f4946ba9b005ab3efd6a3d3eaf53164fc 1 parent 922595c
Mark Story authored May 09, 2011
7  cake/tests/cases/libs/view/helpers/form.test.php
@@ -1928,6 +1928,13 @@ function testInputTime() {
1928 1928
 		$this->assertPattern('#<option value="15"[^>]*>15</option>#', $result[1]);
1929 1929
 		$this->assertPattern('#<option value="30"[^>]*>30</option>#', $result[1]);
1930 1930
 
  1931
+		$result = $this->Form->input('Random.start_time', array(
  1932
+			'type' => 'time',
  1933
+			'selected' => '18:15'
  1934
+		));
  1935
+
  1936
+		$this->assertPattern('#<option value="6"[^>]*>6</option>#', $result[1]);
  1937
+		$this->assertPattern('#<option value="15"[^>]*>15</option>#', $result[1]);
1931 1938
 	}
1932 1939
 
1933 1940
 /**

0 notes on commit 877c874

Please sign in to comment.
Something went wrong with that request. Please try again.