add back test after fixing it

This commit is contained in:
Christian Flothmann 2019-01-25 16:01:39 +01:00
parent bb54e40ca7
commit 0daeba8e8a

View File

@ -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
*/