Skip to content

Commit 6516a20

Browse files
committed
Merge branch '2.8' into 3.2
* 2.8: [Form] fixed tests
2 parents cfc6baf + 9650b50 commit 6516a20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function testSubmitFromSingleTextDateTimeWithDefaultFormat()
6969

7070
public function testSubmitFromSingleTextDateTimeWithCustomFormat()
7171
{
72-
$form = $this->factory->create('date', null, array(
72+
$form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\DateType', null, array(
7373
'model_timezone' => 'UTC',
7474
'view_timezone' => 'UTC',
7575
'widget' => 'single_text',
@@ -369,7 +369,7 @@ public function testThrowExceptionIfFormatDoesNotContainYearMonthAndDay()
369369
*/
370370
public function testThrowExceptionIfFormatMissesYearMonthAndDayWithSingleTextWidget()
371371
{
372-
$this->factory->create('date', null, array(
372+
$this->factory->create('Symfony\Component\Form\Extension\Core\Type\DateType', null, array(
373373
'widget' => 'single_text',
374374
'format' => 'wrong',
375375
));

0 commit comments

Comments
 (0)