8000 make sure that the submitted year is an accepted choice · symfony/symfony@64f675c · GitHub
[go: up one dir, main page]

Skip to content

Commit 64f675c

Browse files
committed
make sure that the submitted year is an accepted choice
1 parent 37282f7 commit 64f675c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,7 @@ public function testSubmitNullUsesDateEmptyData($widget, $emptyData, $expectedDa
695695
$form = $this->factory->create(static::TESTED_TYPE, null, [
696696
'widget' => $widget,
697697
'empty_data' => $emptyData,
698+
'years' => range(2018, (int) date('Y')),
698699
]);
699700
$form->submit(null);
700701

src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,7 @@ public function testSubmitNullUsesDateEmptyData($widget, $emptyData, $expectedDa
10641064
$form = $this->factory->create(static::TESTED_TYPE, null, [
10651065
'widget' => $widget,
10661066
'empty_data' => $emptyData,
1067+
'years' => range(2018, (int) date('Y')),
10671068
]);
10681069
$form->submit(null);
10691070

0 commit comments

Comments
 (0)
0