Task #86170
Check for extbase response type instead of current environment
100%
Description
It's currently not possible to run functional tests that expect frontend output of Extbase.
Extbase will check for current environment to be CLI context, which is true for functional tests.
Still the response might be a web Response which does not implement the called method.
This issue occurs in 7, 8 and master.
Associated revisions
[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>
History
#1
Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58200
#2
Updated by Gerrit Code Review about 1 year ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58200
#3
Updated by Daniel Siepmann about 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c399a2e137f4184ccda6fed89f0c7398223726da.
#4
Updated by Benni Mack 5 months ago
- Status changed from Resolved to Closed