diff --git a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php index b7bf8dd5f..88422256e 100644 --- a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php @@ -6273,6 +6273,25 @@ class FormHelperTest extends CakeTestCase { $this->assertNotRegExp('/selected="selected">\d/', $result); } +/** + * testDateTime all zeros + * + * @return void + */ + public function testDateTimeAllZeros() { + $result = $this->Form->dateTime('Contact.date', + 'DMY', + false, + array( + 'empty' => array('day' => '-', 'month' => '-', 'year' => '-'), + 'value' => '0000-00-00' + ) + ); + + $this->assertRegExp('/