Skip to content
Permalink
Browse files

Add test for time input with interval on first hour of the day

  • Loading branch information...
majna committed Apr 20, 2013
1 parent 842b180 commit 78ea4da6816b041f04c784cd93326336a246ec70
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
@@ -2347,6 +2347,16 @@ public function testInputTimeWithIntervalAnd12HourFormat() {
$this->assertContains('<option value="04" selected="selected">4</option>', $result);
$this->assertContains('<option value="30" selected="selected">30</option>', $result);
$this->assertContains('<option value="pm" selected="selected">pm</option>', $result);
$result = $this->Form->input('Model.start_time', array(
'type' => 'time',
'timeFormat' => '12',
'interval' => 10,
'selected' => '2013-05-19 00:33:00'
));
$this->assertContains('<option value="12" selected="selected">12</option>', $result);
$this->assertContains('<option value="30" selected="selected">30</option>', $result);
$this->assertContains('<option value="am" selected="selected">am</option>', $result);
}
/**

0 comments on commit 78ea4da

Please sign in to comment.
You can’t perform that action at this time.