public function testTranslationsAreDisabledForChoiceWidget()
{
$form = $this->factory->create(
DateIntervalType::class,
null,
array(
'widget' => 'choice',
'with_hours' => true,
'with_minutes' => true,
'with_seconds' => true,
)
);
$this->assertFalse($form->get('years')->getConfig()->getOption('choice_translation_domain'));
$this->assertFalse($form->get('months')->getConfig()->getOption('choice_translation_domain'));
$this->assertFalse($form->get('days')->getConfig()->getOption('choice_translation_domain'));
$this->assertFalse($form->get('hours')->getConfig()->getOption('choice_translation_domain'));
$this->assertFalse($form->get('minutes')->getConfig()->getOption('choice_translation_domain'));
$this->assertFalse($form->get('seconds')->getConfig()->getOption('choice_translation_domain'));
}