diff --git a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php index 4b14a4f66..014cfba79 100644 --- a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php @@ -6287,6 +6287,29 @@ class FormHelperTest extends CakeTestCase { $this->assertContains('data[Contact][published][year]', $result); } +/** + * testYearAutoExpandRange method + * + * @return void + */ + public function testYearAutoExpandRange() { + $this->Form->request->data['User']['birthday'] = '1930-10-10'; + $result = $this->Form->year('User.birthday'); + preg_match_all('/