$view =
$form->
createView();
$this->
assertSame('foo',
$view['date'
]['year'
]->vars
['choice_translation_domain'
]);
$this->
assertSame('test',
$view['date'
]['month'
]->vars
['choice_translation_domain'
]);
$this->
assertFalse($view['date'
]['day'
]->vars
['choice_translation_domain'
]);
$this->
assertSame('foo',
$view['time'
]['hour'
]->vars
['choice_translation_domain'
]);
$this->
assertFalse($view['time'
]['minute'
]->vars
['choice_translation_domain'
]);
$this->
assertSame('test',
$view['time'
]['second'
]->vars
['choice_translation_domain'
]);
} public function testSubmitNull($expected = null,
$norm = null,
$view = null
) { parent::
testSubmitNull($expected,
$norm,
[ // View data is an array of choice values array
'date' =>
['year' => '', 'month' => '', 'day' => ''
],
'time' =>
['hour' => '', 'minute' => ''
],
]);
} public function testSubmitNullWithText() { $form =
$this->factory->
create(static::TESTED_TYPE, null,
[ 'widget' => 'text',
]);