@@ -76,6 +76,7 @@ public function testSubmitFromSingleTextDateTimeWithCustomFormat()
7676 'widget ' => 'single_text ' ,
7777 'input ' => 'datetime ' ,
7878 'format ' => 'yyyy ' ,
79+ 'html5 ' => false ,
7980 ));
8081
8182 $ form ->submit ('2010 ' );
@@ -93,6 +94,7 @@ public function testSubmitFromSingleTextDateTime()
9394
9495 $ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
9596 'format ' => \IntlDateFormatter::MEDIUM ,
97+ 'html5 ' => false ,
9698 'model_timezone ' => 'UTC ' ,
9799 'view_timezone ' => 'UTC ' ,
98100 'widget ' => 'single_text ' ,
@@ -114,6 +116,7 @@ public function testSubmitFromSingleTextDateTimeImmutable()
114116
115117 $ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
116118 'format ' => \IntlDateFormatter::MEDIUM ,
119+ 'html5 ' => false ,
117120 'model_timezone ' => 'UTC ' ,
118121 'view_timezone ' => 'UTC ' ,
119122 'widget ' => 'single_text ' ,
@@ -136,6 +139,7 @@ public function testSubmitFromSingleTextString()
136139
137140 $ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
138141 'format ' => \IntlDateFormatter::MEDIUM ,
142+ 'html5 ' => false ,
139143 'model_timezone ' => 'UTC ' ,
140144 'view_timezone ' => 'UTC ' ,
141145 'widget ' => 'single_text ' ,
@@ -157,6 +161,7 @@ public function testSubmitFromSingleTextTimestamp()
157161
158162 $ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
159163 'format ' => \IntlDateFormatter::MEDIUM ,
164+ 'html5 ' => false ,
160165 'model_timezone ' => 'UTC ' ,
161166 'view_timezone ' => 'UTC ' ,
162167 'widget ' => 'single_text ' ,
@@ -180,6 +185,7 @@ public function testSubmitFromSingleTextRaw()
180185
181186 $ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
182187 'format ' => \IntlDateFormatter::MEDIUM ,
188+ 'html5 ' => false ,
183189 'model_timezone ' => 'UTC ' ,
184190 'view_timezone ' => 'UTC ' ,
185191 'widget ' => 'single_text ' ,
@@ -270,6 +276,7 @@ public function testSubmitFromInputDateTimeDifferentPattern()
270276 'model_timezone ' => 'UTC ' ,
271277 'view_timezone ' => 'UTC ' ,
272278 'format ' => 'MM*yyyy*dd ' ,
279+ 'html5 ' => false ,
273280 'widget ' => 'single_text ' ,
274281 'input ' => 'datetime ' ,
275282 ));
@@ -286,6 +293,7 @@ public function testSubmitFromInputStringDifferentPattern()
286293 'model_timezone ' => 'UTC ' ,
287294 'view_timezone ' => 'UTC ' ,
288295 'format ' => 'MM*yyyy*dd ' ,
296+ 'html5 ' => false ,
289297 'widget ' => 'single_text ' ,
290298 'input ' => 'string ' ,
291299 ));
@@ -302,6 +310,7 @@ public function testSubmitFromInputTimestampDifferentPattern()
302310 'model_timezone ' => 'UTC ' ,
303311 'view_timezone ' => 'UTC ' ,
304312 'format ' => 'MM*yyyy*dd ' ,
313+ 'html5 ' => false ,
305314 'widget ' => 'single_text ' ,
306315 'input ' => 'timestamp ' ,
307316 ));
@@ -320,6 +329,7 @@ public function testSubmitFromInputRawDifferentPattern()
320329 'model_timezone ' => 'UTC ' ,
321330 'view_timezone ' => 'UTC ' ,
322331 'format ' => 'MM*yyyy*dd ' ,
332+ 'html5 ' => false ,
323333 'widget ' => 'single_text ' ,
324334 'input ' => 'array ' ,
325335 ));
@@ -368,6 +378,7 @@ public function testThrowExceptionIfFormatIsNoPattern()
368378 {
369379 $ this ->factory ->create (static ::TESTED_TYPE , null , array (
370380 'format ' => '0 ' ,
381+ 'html5 ' => false ,
371382 'widget ' => 'single_text ' ,
372383 'input ' => 'string ' ,
373384 ));
@@ -394,6 +405,7 @@ public function testThrowExceptionIfFormatMissesYearMonthAndDayWithSingleTextWid
394405 $ this ->factory ->create (static ::TESTED_TYPE , null , array (
395406 'widget ' => 'single_text ' ,
396407 'format ' => 'wrong ' ,
408+ 'html5 ' => false ,
397409 ));
398410 }
399411
@@ -456,6 +468,7 @@ public function testSetDataWithNegativeTimezoneOffsetStringInput()
456468
457469 $ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
458470 'format ' => \IntlDateFormatter::MEDIUM ,
471+ 'html5 ' => false ,
459472 'model_timezone ' => 'UTC ' ,
460473 'view_timezone ' => 'America/New_York ' ,
461474 'input ' => 'string ' ,
@@ -478,6 +491,7 @@ public function testSetDataWithNegativeTimezoneOffsetDateTimeInput()
478491
479492 $ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
480493 'format ' => \IntlDateFormatter::MEDIUM ,
494+ 'html5 ' => false ,
481495 'model_timezone ' => 'UTC ' ,
482496 'view_timezone ' => 'America/New_York ' ,
483497 'input ' => 'datetime ' ,
@@ -856,6 +870,7 @@ public function testDontPassHtml5TypeIfNotHtml5Format()
856870 $ view = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
857871 'widget ' => 'single_text ' ,
858872 'format ' => \IntlDateFormatter::MEDIUM ,
873+ 'html5 ' => false ,
859874 ))
860875 ->createView ();
861876
0 commit comments