minor #28504 [Form] Fix expected values in datetime-local test (mcfedr)

This PR was submitted for the master branch but it was merged into the 4.1 branch instead (closes #28504).

Discussion
----------

[Form] Fix expected values in datetime-local test

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #28372
| License       | MIT
| Doc PR        | N/A

Commits
-------

5ed8b2710f Fix expected values in datetime-local test
This commit is contained in:
Nicolas Grekas 2018-09-18 20:12:30 +02:00
commit 4879a75a9a

View File

@ -258,13 +258,13 @@ class DateTimeTypeTest extends BaseTypeTest
$outputTime = new \DateTimeImmutable('2010-06-02 03:04:00 Pacific/Tahiti');
$form->submit('2010-06-02T03:04:00-10:00');
$form->submit('2010-06-02T03:04:00');
$outputTime = $outputTime->setTimezone(new \DateTimeZone('America/New_York'));
$this->assertInstanceOf(\DateTimeImmutable::class, $form->getData());
$this->assertEquals($outputTime, $form->getData());
$this->assertEquals('2010-06-02T03:04:00-10:00', $form->getViewData());
$this->assertEquals('2010-06-02T03:04:00', $form->getViewData());
}
public function testSubmitStringSingleText()