10000 submitted years must be valid choices · symfony/symfony@3ca9f3c · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ca9f3c

Browse files
committed
submitted years must be valid choices
1 parent 9556cfc commit 3ca9f3c

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
@@ -708,6 +708,7 @@ public function testSubmitNullUsesDateEmptyData($widget, $emptyData, $expectedDa
708708
$form = $this->factory->create(static::TESTED_TYPE, null, [
709709
'widget' => $widget,
710710
'empty_data' => $emptyData,
711+
'years' => range(2018, (int) date('Y')),
711712
]);
712713
$form->submit(null);
713714

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,7 @@ public function testSubmitNullUsesDateEmptyData($widget, $emptyData, $expectedDa
10431043
$form = $this->factory->create(static::TESTED_TYPE, null, [
10441044
'widget' => $widget,
10451045
'empty_data' => $emptyData,
1046+
'years' => range(2018, (int) date('Y')),
10461047
]);
10471048
$form->submit(null);
10481049

0 commit comments

Comments
 (0)
0