@@ -2768,6 +2768,8 @@ public function submitFormNoValidateProvider()
2768
2768
2769
2769
public function testWeekSingleText ()
2770
2770
{
2771
+ $ this ->requiresFeatureSet (404 );
2772
+
2771
2773
$ form = $ this ->factory ->createNamed ('holidays ' , 'Symfony\Component\Form\Extension\Core\Type\WeekType ' , '1970-W01 ' , [
2772
2774
'input ' => 'string ' ,
2773
2775
'widget ' => 'single_text ' ,
@@ -2785,6 +2787,8 @@ public function testWeekSingleText()
2785
2787
2786
2788
public function testWeekSingleTextNoHtml5 ()
2787
2789
{
2790
+ $ this ->requiresFeatureSet (404 );
2791
+
2788
2792
$ form = $ this ->factory ->createNamed ('holidays ' , 'Symfony\Component\Form\Extension\Core\Type\WeekType ' , '1970-W01 ' , [
2789
2793
'input ' => 'string ' ,
2790
2794
'widget ' => 'single_text ' ,
@@ -2803,11 +2807,13 @@ public function testWeekSingleTextNoHtml5()
2803
2807
2804
2808
public function testWeekChoices ()
2805
2809
{
2806
- $ data = ['year ' => date ('Y ' ), 'week ' => 1 ];
2810
+ $ this ->requiresFeatureSet (404 );
2811
+
2812
+ $ data = ['year ' => (int ) date ('Y ' ), 'week ' => 1 ];
2807
2813
2808
2814
$ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\WeekType ' , $ data , [
2809
2815
'input ' => 'array ' ,
2810
- 'required ' => false ,
2816
+ 'widget ' => ' choice ' ,
2811
2817
]);
2812
2818
2813
2819
$ this ->assertWidgetMatchesXpath ($ form ->createView (), ['attr ' => ['class ' => 'my&class ' ]],
@@ -2827,6 +2833,8 @@ public function testWeekChoices()
2827
2833
2828
2834
public function testWeekText ()
2829
2835
{
2836
+ $ this ->requiresFeatureSet (404 );
2837
+
2830
2838
$ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\WeekType ' , '2000-W01 ' , [
2831
2839
'input ' => 'string ' ,
2832
2840
'widget ' => 'text ' ,
0 commit comments