Issue Bug Closed

#75954UnitTest Failure in typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php

Morton Jonuschat 04/27/16, 20:58 updated 10/02/18, 11:13

Description

Running the unit tests in typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php with a TimeZone different from UTC results in test failures:

1) TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\Mapper\DataMapperTest::getPlainValueReturnsCorrectDateTimeFormat
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'2013-04-15 09:30:00'
+'2013-04-15 07:30:00'

typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php:279

Steps to reproduce:

bin/phpunit -c typo3/sysext/core/Build/UnitTests.xml -ddate.timezone=Europe/Amsterdam typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php

Reviews 2