private FormDataExtractor
$dataExtractor;
protected function setUp(): void
{ $this->dataExtractor =
new FormDataExtractor();
} public function testExtractConfiguration() { $form =
$this->
createBuilder('name'
) ->
setType(new ResolvedFormType(new HiddenType())) ->
getForm();
$this->
assertSame([ 'id' => 'name',
'name' => 'name',
'type_class' => HiddenType::
class,
'synchronized' => true,
'passed_options' =>
[],
'resolved_options' =>
[],
],
$this->dataExtractor->
extractConfiguration($form));
}