public function testSubmitFromSingleTextDateTimeWithDefaultFormat() { $form =
$this->factory->
create(static::TESTED_TYPE, null,
[ 'model_timezone' => 'UTC',
'view_timezone' => 'UTC',
'widget' => 'single_text',
'input' => 'datetime',
]);
$form->
submit('2010-06-02'
);
$this->
assertEquals(new \
DateTime('2010-06-02 UTC'
),
$form->
getData());
$this->
assertEquals('2010-06-02',
$form->
getViewData());
} public function testSubmitFromSingleTextDateTimeWithCustomFormat() { $form =
$this->factory->
create(static::TESTED_TYPE, null,
[ 'model_timezone' => 'UTC',
'view_timezone' => 'UTC',
'widget' => 'single_text',