10000 [Form] fixed Date\TimeType marked as invalid on request with single_… · symfony/symfony@ea9567e · GitHub
[go: up one dir, main page]

Skip to content

Commit ea9567e

Browse files
committed
[Form] fixed Date\TimeType marked as invalid on request with single_text and zero seconds (LuisDeimos)
1 parent 006f236 commit ea9567e

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

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

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -167,34 +167,6 @@ public function testSubmitWithSeconds()
167167
$this->assertDateTimeEquals(new \DateTime('2010-06-02 03:04:05 UTC'), $form->getData());
168168
}
169169

170-
public function testSubmitWithSecondsAndBrowserOmissionSeconds()
171-
{
172-
$form = $this->factory->create('datetime', null, array(
173-
'model_timezone' => 'UTC',
174-
'view_timezone' => 'UTC',
175-
'date_widget' => 'choice',
176-
'years' => array(2010),
177-
'time_widget' => 'single_text',
178-
'input' => 'datetime',
179-
'with_seconds' => true,
180-
));
181-
182-
$form->setData(new \DateTime());
183-
184-
$input = array(
185-
'date' => array(
186-
'day' => '2',
187-
'month' => '6',
188-
'year' => '2010',
189-
),
190-
'time' => '03:04',
191-
);
192-
193-
$form->submit($input);
194-
195-
$this->assertDateTimeEquals(new \DateTime('2010-06-02 03:04:00 UTC'), $form->getData());
196-
}
197-
198170
public function testSubmitDifferentTimezones()
199171
{
200172
$form = $this->factory->create('datetime', null, array(

0 commit comments

Comments
 (0)
0