mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding test for #2325
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4734 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
c276d65d6f
commit
20be70a22e
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue