Permalink
Browse files

Add test for empty meridian select.

  • Loading branch information...
1 parent 910c823 commit 3176422baf9dd4560940a6cbc1861da9a5d9327d @markstory markstory committed Jan 24, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/TestCase/View/Input/DateTimeTest.php
@@ -89,13 +89,15 @@ public function testRenderEmptyValues() {
'hour' => ['empty' => 'HOUR'],
'minute' => ['empty' => 'MINUTE'],
'second' => ['empty' => 'SECOND'],
+ 'meridian' => ['empty' => 'MERIDIAN'],
]);
$this->assertContains('<option value="" selected="selected">YEAR</option>', $result);
$this->assertContains('<option value="" selected="selected">MONTH</option>', $result);
$this->assertContains('<option value="" selected="selected">DAY</option>', $result);
$this->assertContains('<option value="" selected="selected">HOUR</option>', $result);
$this->assertContains('<option value="" selected="selected">MINUTE</option>', $result);
$this->assertContains('<option value="" selected="selected">SECOND</option>', $result);
+ $this->assertContains('<option value="" selected="selected">MERIDIAN</option>', $result);
}
/**

0 comments on commit 3176422

Please sign in to comment.