'widget' => 'choice',
]);
$view =
$form->
createView();
$this->
assertSame('foo',
$view['year'
]->vars
['choice_translation_domain'
]);
$this->
assertSame('test',
$view['week'
]->vars
['choice_translation_domain'
]);
} public function testSubmitNull($expected = null,
$norm = null,
$view = null
) { $form =
$this->factory->
create($this->
getTestedType(), null,
[ 'widget' => 'choice',
]);
$form->
submit(null
);
$this->
assertSame(['year' => null, 'week' => null
],
$form->
getData());
$this->
assertSame(['year' => null, 'week' => null
],
$form->
getNormData());
$this->
assertSame(['year' => null, 'week' => null
],
$form->
getViewData());
} public function testSubmitFromChoiceEmpty() {