@@ -200,7 +200,7 @@ public function testMergeParamsAndFiles($method)
200
200
$ form = $ this ->createForm ('param1 ' , $ method , true );
201
201
$ form ->add ($ this ->createForm ('field1 ' ));
202
202
$ form ->add ($ this ->createBuilder ('field2 ' , false , ['allow_file_upload ' => true ])->getForm ());
203
- $ file = $ this ->getMockFile ();
203
+ $ file = $ this ->getUploadedFile ();
204
204
205
205
$ this ->setRequestData ($ method , [
206
206
'param1 ' => [
@@ -225,7 +225,7 @@ public function testMergeParamsAndFiles($method)
225
225
public function testParamTakesPrecedenceOverFile ($ method )
226
226
{
227
227
$ form = $ this ->createForm ('param1 ' , $ method );
228
- $ file = $ this ->getMockFile ();
228
+ $ file = $ this ->getUploadedFile ();
229
229
230
230
$ this ->setRequestData ($ method , [
231
231
'param1 ' => 'DATA ' ,
@@ -247,7 +247,7 @@ public function testSubmitFileIfNoParam($method)
247
247
$ form = $ this ->createBuilder ('param1 ' , false , ['allow_file_upload ' => true ])
248
248
->setMethod ($ method )
249
249
->getForm ();
250
- $ file = $ this ->getMockFile ();
250
+ $ file = $ this ->getUploadedFile ();
251
251
252
252
$ this ->setRequestData ($ method , [
253
253
'param1 ' => null ,
@@ -269,14 +269,14 @@ public function testSubmitMultipleFiles($method)
269
269
$ form = $ this ->createBuilder ('param1 ' , false , ['allow_file_upload ' => true ])
270
270
->setMethod ($ method )
271
271
->getForm ();
272
- $ file = $ this ->getMockFile ();
272
+ $ file = $ this ->getUploadedFile ();
273
273
274
274
$ this ->setRequestData ($ method , [
275
275
'param1 ' => null ,
276
276
], [
277
- 'param2 ' => $ this ->getMockFile ('2 ' ),
277
+ 'param2 ' => $ this ->getUploadedFile ('2 ' ),
278
278
'param1 ' => $ file ,
279
- 'param3 ' => $ this ->getMockFile ('3 ' ),
279
+ 'param3 ' => $ this ->getUploadedFile ('3 ' ),
280
280
]);
281
281
282
282
$ this ->requestHandler ->handleRequest ($ form , $ this ->request );
@@ -332,7 +332,7 @@ public function getPostMaxSizeFixtures()
332
332
333
333
public function testUploadedFilesAreAccepted ()
334
334
{
335
- $ this ->assertTrue ($ this ->requestHandler ->isFileUpload ($ this ->getMockFile ()));
335
+ $ this ->assertTrue ($ this ->requestHandler ->isFileUpload ($ this ->getUploadedFile ()));
336
336
}
337
337
338
338
public function testInvalidFilesAreRejected ()
@@ -344,7 +344,7 @@ abstract protected function setRequestData($method, $data, $files = []);
344
344
345
345
abstract protected function getRequestHandler ();
346
346
347
- abstract protected function getMockFile ($ suffix = '' );
347
+ abstract protected function getUploadedFile ($ suffix = '' );
348
348
349
349
abstract protected function getInvalidFile ();
350
350
0 commit comments