@@ -2768,6 +2768,8 @@ public function submitFormNoValidateProvider()
27682768
27692769 public function testWeekSingleText ()
27702770 {
2771+ $ this ->requiresFeatureSet (404 );
2772+
27712773 $ form = $ this ->factory ->createNamed ('holidays ' , 'Symfony\Component\Form\Extension\Core\Type\WeekType ' , '1970-W01 ' , [
27722774 'input ' => 'string ' ,
27732775 'widget ' => 'single_text ' ,
@@ -2785,6 +2787,8 @@ public function testWeekSingleText()
27852787
27862788 public function testWeekSingleTextNoHtml5 ()
27872789 {
2790+ $ this ->requiresFeatureSet (404 );
2791+
27882792 $ form = $ this ->factory ->createNamed ('holidays ' , 'Symfony\Component\Form\Extension\Core\Type\WeekType ' , '1970-W01 ' , [
27892793 'input ' => 'string ' ,
27902794 'widget ' => 'single_text ' ,
@@ -2803,11 +2807,13 @@ public function testWeekSingleTextNoHtml5()
28032807
28042808 public function testWeekChoices ()
28052809 {
2806- $ data = ['year ' => date ('Y ' ), 'week ' => 1 ];
2810+ $ this ->requiresFeatureSet (404 );
2811+
2812+ $ data = ['year ' => (int ) date ('Y ' ), 'week ' => 1 ];
28072813
28082814 $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\WeekType ' , $ data , [
28092815 'input ' => 'array ' ,
2810- 'required ' => false ,
2816+ 'widget ' => ' choice ' ,
28112817 ]);
28122818
28132819 $ this ->assertWidgetMatchesXpath ($ form ->createView (), ['attr ' => ['class ' => 'my&class ' ]],
@@ -2827,6 +2833,8 @@ public function testWeekChoices()
28272833
28282834 public function testWeekText ()
28292835 {
2836+ $ this ->requiresFeatureSet (404 );
2837+
28302838 $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\WeekType ' , '2000-W01 ' , [
28312839 'input ' => 'string ' ,
28322840 'widget ' => 'text ' ,
0 commit comments