8000 [Form] fixed tests · symfony/symfony@9650b50 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9650b50

Browse files
committed
[Form] fixed tests
1 parent 47a8b4d commit 9650b50

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
@@ -79,7 +79,7 @@ public function testSubmitFromSingleTextDateTimeWithDefaultFormat()
7979

8080
public function testSubmitFromSingleTextDateTimeWithCustomFormat()
8181
{
82-
$form = $this->factory->create('date', null, array(
82+
$form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\DateType', null, array(
8383
'model_timezone' => 'UTC',
8484
'view_timezone' => 'UTC',
8585
'widget' => 'single_text',
@@ -379,7 +379,7 @@ public function testThrowExceptionIfFormatDoesNotContainYearMonthAndDay()
379379
*/
380380
public function testThrowExceptionIfFormatMissesYearMonthAndDayWithSingleTextWidget()
381381
{
382-
$this->factory->create('date', null, array(
382+
$this->factory->create('Symfony\Component\Form\Extension\Core\Type\DateType', null, array(
383383
'widget' => 'single_text',
384384
'format' => 'wrong',
385385
));

0 commit comments

Comments
 (0)
0