[TASK] Correctly initialize environment for DataHandler in tests 69/57869/4
authorOliver Hader <oliver@typo3.org>
Sat, 11 Aug 2018 07:46:25 +0000 (09:46 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 11 Aug 2018 09:38:14 +0000 (11:38 +0200)
commitb13ccf1f2b587655ec82d0f5fe1fd9a1730944af
treeb0293112214ad31880d1bf07a2a085508be41d35
parentf7d5cc679e948b20fb346523d84f7402b42c8768
[TASK] Correctly initialize environment for DataHandler in tests

Since importing data scenarios in tests relies on DataHandler, it is
required to correctly initialize $GLOBALS['LANG'] as well. Since not
all tests were failing, this probably points out side effects during
test execution in terms of reusing globals settings of other tests.

Besides that, a misbehavior in typo3/testing-framework lead to the
situation that not all entities have been created - which would have
triggered DataHandler log entries that rely on previously mentioned
$GLOBALS['LANG'] instance.

Resolves: #85814
Releases: master
Change-Id: I4e2745cfeed6e2576f7ae23dd4d4ea4b49572a3f
Reviewed-on: https://review.typo3.org/57869
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
composer.json
composer.lock
typo3/sysext/core/composer.json
typo3/sysext/frontend/Tests/Functional/SiteHandling/AbstractRequestTest.php
typo3/sysext/frontend/Tests/Functional/SiteHandling/Fixtures/PhpError.php
typo3/sysext/frontend/Tests/Functional/SiteHandling/PlainRequestTest.php
typo3/sysext/frontend/Tests/Functional/SiteHandling/SiteRequestTest.php