Skip to content

Commit

Permalink
Adding tests for GH-57
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 10, 2011
1 parent 922595c commit 877c874
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cake/tests/cases/libs/view/helpers/form.test.php
Expand Up @@ -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]);
}

/**
Expand Down

0 comments on commit 877c874

Please sign in to comment.