add back test after fixing it
This commit is contained in:
parent
bb54e40ca7
commit
0daeba8e8a
@ -285,6 +285,26 @@ abstract class AbstractRequestHandlerTest extends TestCase
|
||||
$this->assertSame($file, $form->getData());
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider methodExceptGetProvider
|
||||
*/
|
||||
public function testSubmitFileWithNamelessForm($method)
|
||||
{
|
||||
$form = $this->createForm('', $method, true);
|
||||
$fileForm = $this->createBuilder('document', false, ['allow_file_upload' => true])->getForm();
|
||||
$form->add($fileForm);
|
||||
$file = $this->getUploadedFile();
|
||||
$this->setRequestData($method, [
|
||||
'document' => null,
|
||||
], [
|
||||
'document' => $file,
|
||||
]);
|
||||
$this->requestHandler->handleRequest($form, $this->request);
|
||||
|
||||
$this->assertTrue($form->isSubmitted());
|
||||
$this->assertSame($file, $fileForm->getData());
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getPostMaxSizeFixtures
|
||||
*/
|
||||
|
Reference in New Issue
Block a user