Skip to content
Snippets Groups Projects
Commit bae97b8e authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Avoid runtime overriding GLOBALS in functional tests

The InternalResponseContext class of the testing-framework
provides method withGlobalSettings() which can be used to
set arbitrary globals when executing a frontend sub request.

It is used in various tests to set some TYPO3_CONF_VARS.

The testing-framework already provides class property
$configurationToUseInTestInstance to set TYPO3_CONF_VARS
on a per test-case level.

The patch migrates tests towards this property and
avoids using an AdditionalConfiguration fixture file
that is also used to set some TYPO3_CONF_VARS.

Resolves: #96244
Releases: main, 11.5
Change-Id: Ie34a449075d1c1bacb1380dd5e79e3c48978bfe4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72506


Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72509


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 84e99527
Branches
Tags
No related merge requests found
Showing
with 76 additions and 176 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment