|
13 | 13 |
|
14 | 14 | use Symfony\Component\Form\Extension\Core\Type\PercentType; |
15 | 15 | use Symfony\Component\Form\FormError; |
16 | | -use Symfony\Component\Form\FormTypeExtensionInterface; |
17 | 16 | use Symfony\Component\Form\Tests\AbstractLayoutTest; |
18 | 17 |
|
19 | 18 | abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest |
@@ -1689,34 +1688,6 @@ public function testDateTimeWithWidgetSingleText() |
1689 | 1688 | ); |
1690 | 1689 | } |
1691 | 1690 |
|
1692 | | - /** |
1693 | | - * @group legacy |
1694 | | - */ |
1695 | | - public function testDateTimeWithWidgetSingleTextIgnoreDateAndTimeWidgets() |
1696 | | - { |
1697 | | - if (method_exists(FormTypeExtensionInterface::class, 'getExtendedTypes')) { |
1698 | | - $this->markTestSkipped('The test requires symfony/form 4.x.'); |
1699 | | - } |
1700 | | - |
1701 | | - $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\DateTimeType', '2011-02-03 04:05:06', [ |
1702 | | - 'input' => 'string', |
1703 | | - 'date_widget' => 'choice', |
1704 | | - 'time_widget' => 'choice', |
1705 | | - 'widget' => 'single_text', |
1706 | | - 'model_timezone' => 'UTC', |
1707 | | - 'view_timezone' => 'UTC', |
1708 | | - ]); |
1709 | | - |
1710 | | - $this->assertWidgetMatchesXpath($form->createView(), ['attr' => ['class' => 'my&class']], |
1711 | | -'/input |
1712 | | - [@type="datetime-local"] |
1713 | | - [@name="name"] |
1714 | | - [@class="my&class form-control"] |
1715 | | - [@value="2011-02-03T04:05:06"] |
1716 | | -' |
1717 | | - ); |
1718 | | - } |
1719 | | - |
1720 | 1691 | public function testDateChoice() |
1721 | 1692 | { |
1722 | 1693 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\DateType', date('Y').'-02-03', [ |
|
0 commit comments