$form->
submit('2010'
);
$this->
assertEquals(new \
DateTime('2010-01-01 UTC'
),
$form->
getData());
$this->
assertEquals('2010',
$form->
getViewData());
} public function testSubmitFromSingleTextDateTime() { // we test against "de_DE", so we need the full implementation
IntlTestHelper::
requireFullIntl($this, false
);
\Locale::
setDefault('de_DE'
);
$form =
$this->factory->
create(static::TESTED_TYPE, null,
[ 'format' => \IntlDateFormatter::MEDIUM,
'html5' => false,
'model_timezone' => 'UTC',
'view_timezone' => 'UTC',
'widget' => 'single_text',
'input' => 'datetime',
]);