@@ -76,6 +76,7 @@ public function testSubmitFromSingleTextDateTimeWithCustomFormat()
76
76
'widget ' => 'single_text ' ,
77
77
'input ' => 'datetime ' ,
78
78
'format ' => 'yyyy ' ,
79
+ 'html5 ' => false ,
79
80
));
80
81
81
82
$ form ->submit ('2010 ' );
@@ -93,6 +94,7 @@ public function testSubmitFromSingleTextDateTime()
93
94
94
95
$ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
95
96
'format ' => \IntlDateFormatter::MEDIUM ,
97
+ 'html5 ' => false ,
96
98
'model_timezone ' => 'UTC ' ,
97
99
'view_timezone ' => 'UTC ' ,
98
100
'widget ' => 'single_text ' ,
@@ -114,6 +116,7 @@ public function testSubmitFromSingleTextDateTimeImmutable()
114
116
115
117
$ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
116
118
'format ' => \IntlDateFormatter::MEDIUM ,
119
+ 'html5 ' => false ,
117
120
'model_timezone ' => 'UTC ' ,
118
121
'view_timezone ' => 'UTC ' ,
119
122
'widget ' => 'single_text ' ,
@@ -136,6 +139,7 @@ public function testSubmitFromSingleTextString()
136
139
137
140
$ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
138
141
'format ' => \IntlDateFormatter::MEDIUM ,
142
+ 'html5 ' => false ,
139
143
'model_timezone ' => 'UTC ' ,
140
144
'view_timezone ' => 'UTC ' ,
141
145
'widget ' => 'single_text ' ,
@@ -157,6 +161,7 @@ public function testSubmitFromSingleTextTimestamp()
157
161
158
162
$ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
159
163
'format ' => \IntlDateFormatter::MEDIUM ,
164
+ 'html5 ' => false ,
160
165
'model_timezone ' => 'UTC ' ,
161
166
'view_timezone ' => 'UTC ' ,
162
167
'widget ' => 'single_text ' ,
@@ -180,6 +185,7 @@ public function testSubmitFromSingleTextRaw()
180
185
181
186
$ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
182
187
'format ' => \IntlDateFormatter::MEDIUM ,
188
+ 'html5 ' => false ,
183
189
'model_timezone ' => 'UTC ' ,
184
190
'view_timezone ' => 'UTC ' ,
185
191
'widget ' => 'single_text ' ,
@@ -270,6 +276,7 @@ public function testSubmitFromInputDateTimeDifferentPattern()
270
276
'model_timezone ' => 'UTC ' ,
271
277
'view_timezone ' => 'UTC ' ,
272
278
'format ' => 'MM*yyyy*dd ' ,
279
+ 'html5 ' => false ,
273
280
'widget ' => 'single_text ' ,
274
281
'input ' => 'datetime ' ,
275
282
));
@@ -286,6 +293,7 @@ public function testSubmitFromInputStringDifferentPattern()
286
293
'model_timezone ' => 'UTC ' ,
287
294
'view_timezone ' => 'UTC ' ,
288
295
'format ' => 'MM*yyyy*dd ' ,
296
+ 'html5 ' => false ,
289
297
'widget ' => 'single_text ' ,
290
298
'input ' => 'string ' ,
291
299
));
@@ -302,6 +310,7 @@ public function testSubmitFromInputTimestampDifferentPattern()
302
310
'model_timezone ' => 'UTC ' ,
303
311
'view_timezone ' => 'UTC ' ,
304
312
'format ' => 'MM*yyyy*dd ' ,
313
+ 'html5 ' => false ,
305
314
'widget ' => 'single_text ' ,
306
315
'input ' => 'timestamp ' ,
307
316
));
@@ -320,6 +329,7 @@ public function testSubmitFromInputRawDifferentPattern()
320
329
'model_timezone ' => 'UTC ' ,
321
330
'view_timezone ' => 'UTC ' ,
322
331
'format ' => 'MM*yyyy*dd ' ,
332
+ 'html5 ' => false ,
323
333
'widget ' => 'single_text ' ,
324
334
'input ' => 'array ' ,
325
335
));
@@ -368,6 +378,7 @@ public function testThrowExceptionIfFormatIsNoPattern()
368
378
{
369
379
$ this ->factory ->create (static ::TESTED_TYPE , null , array (
370
380
'format ' => '0 ' ,
381
+ 'html5 ' => false ,
371
382
'widget ' => 'single_text ' ,
372
383
'input ' => 'string ' ,
373
384
));
@@ -394,6 +405,7 @@ public function testThrowExceptionIfFormatMissesYearMonthAndDayWithSingleTextWid
394
405
$ this ->factory ->create (static ::TESTED_TYPE , null , array (
395
406
'widget ' => 'single_text ' ,
396
407
'format ' => 'wrong ' ,
408
+ 'html5 ' => false ,
397
409
));
398
410
}
399
411
@@ -456,6 +468,7 @@ public function testSetDataWithNegativeTimezoneOffsetStringInput()
456
468
457
469
$ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
458
470
'format ' => \IntlDateFormatter::MEDIUM ,
471
+ 'html5 ' => false ,
459
472
'model_timezone ' => 'UTC ' ,
460
473
'view_timezone ' => 'America/New_York ' ,
461
474
'input ' => 'string ' ,
@@ -478,6 +491,7 @@ public function testSetDataWithNegativeTimezoneOffsetDateTimeInput()
478
491
479
492
$ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
480
493
'format ' => \IntlDateFormatter::MEDIUM ,
494
+ 'html5 ' => false ,
481
495
'model_timezone ' => 'UTC ' ,
482
496
'view_timezone ' => 'America/New_York ' ,
483
497
'input ' => 'datetime ' ,
@@ -856,6 +870,7 @@ public function testDontPassHtml5TypeIfNotHtml5Format()
856
870
$ view = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
857
871
'widget ' => 'single_text ' ,
858
872
'format ' => \IntlDateFormatter::MEDIUM ,
873
+ 'html5 ' => false ,
859
874
))
860
875
->createView ();
861
876
0 commit comments