[TASK] Check for Extbase response type instead of environment 00/58200/3
authorDaniel Siepmann <daniel.siepmann@typo3.org>
Thu, 6 Sep 2018 12:36:16 +0000 (14:36 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sun, 28 Oct 2018 14:12:58 +0000 (15:12 +0100)
commitc399a2e137f4184ccda6fed89f0c7398223726da
treef15994aae0dd66130440aa8cbabd3e9ec5814c8e
parentf46acd19c1a26f8989a74e5c3bb87afdcbe162ba
[TASK] Check for Extbase response type instead of environment

Functional tests always set CLI context to true. Even if Extbase returns
an Web\Response, the method getExitCode will be called, which only
exists in Cli\Response.

Therefore a check against the response type allows to run functional
tests with Web\Response in Extbase.

Resolves: #86170
Releases: master
Change-Id: I5982d77aad82f92b6e6bb13cca5118ea2a3e7796
Reviewed-on: https://review.typo3.org/58200
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/extbase/Classes/Core/Bootstrap.php