public function testCreateBuilder() { $givenOptions =
['a' => 'a_custom', 'c' => 'c_custom', 'foo' => 'bar'
];
$resolvedOptions =
['b' => 'b_default', 'd' => 'd_default', 'a' => 'a_custom', 'c' => 'c_custom', 'foo' => 'bar'
];
$builder =
$this->resolvedType->
createBuilder($this->formFactory, 'name',
$givenOptions);
$this->
assertSame($this->resolvedType,
$builder->
getType());
$this->
assertSame($resolvedOptions,
$builder->
getOptions());
$this->
assertNull($builder->
getDataClass());
} public function testCreateBuilderWithDataClassOption() { $resolvedOptions =
[ 'a' => 'a_default',
'b' => 'b_default',
'c' => 'c_default',
'd' => 'd_default',
'data_class' => \stdClass::
class,
'foo' => 'bar',
];