diff --git a/cake/tests/cases/libs/view/helpers/form.test.php b/cake/tests/cases/libs/view/helpers/form.test.php index e33c76b16..18b4b024f 100644 --- a/cake/tests/cases/libs/view/helpers/form.test.php +++ b/cake/tests/cases/libs/view/helpers/form.test.php @@ -223,6 +223,16 @@ class FormHelperTest extends UnitTestCase { } + function testHour() { + $result = $this->Form->hour('tagname', false); + $this->assertPattern('/option value="12"/', $result); + $this->assertNoPattern('/option value="13"/', $result); + + $result = $this->Form->hour('tagname', true); + $this->assertPattern('/option value="23"/', $result); + $this->assertNoPattern('/option value="24"/', $result); + } + function testYear() { $result = $this->Form->year('Model.field', 2006, 2007); $this->assertPattern('/option value="2006"/', $result);