private UsageTrackingFormTypeExtension
$extension1;
private UsageTrackingFormTypeExtension
$extension2;
private ResolvedFormType
$parentResolvedType;
private ResolvedFormType
$resolvedType;
private FormFactory
$formFactory;
protected function setUp(): void
{ $this->calls =
[];
$this->parentType =
new UsageTrackingParentFormType($this->calls
);
$this->type =
new UsageTrackingFormType($this->calls
);
$this->extension1 =
new UsageTrackingFormTypeExtension($this->calls,
['c' => 'c_default'
]);
$this->extension2 =
new UsageTrackingFormTypeExtension($this->calls,
['d' => 'd_default'
]);
$this->parentResolvedType =
new ResolvedFormType($this->parentType
);
$this->resolvedType =
new ResolvedFormType($this->type,
[$this->extension1,
$this->extension2
],
$this->parentResolvedType
);
$this->formFactory =
new FormFactory(new FormRegistry([],
new ResolvedFormTypeFactory()));
} public function testGetOptionsResolver() { $givenOptions =
['a' => 'a_custom', 'c' => 'c_custom', 'foo' => 'bar'
];
$resolvedOptions =
['a' => 'a_custom', 'b' => 'b_default', 'c' => 'c_custom', 'd' => 'd_default', 'foo' => 'bar'
];