mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-23 16:16:10 +01:00
parent
81065f5c67
commit
8851a4e299
2 changed files with 1 additions and 32 deletions
|
@ -1,30 +0,0 @@
|
||||||
Issue: https://github.com/TYPO3/testing-framework/issues/517
|
|
||||||
PR: https://github.com/TYPO3/testing-framework/pull/518
|
|
||||||
diff --git a/Classes/Core/Functional/Framework/FrameworkState.php b/Classes/Core/Functional/Framework/FrameworkState.php
|
|
||||||
index 93716fc..f900539 100644
|
|
||||||
--- a/Classes/Core/Functional/Framework/FrameworkState.php
|
|
||||||
+++ b/Classes/Core/Functional/Framework/FrameworkState.php
|
|
||||||
@@ -50,6 +50,7 @@ class FrameworkState
|
|
||||||
// different. And code that runs after that within the test scope may fail (eg. the referenceIndex check in tearDown() that
|
|
||||||
// relies on TCA). So we back up TCA for now before executing frontend tests.
|
|
||||||
$state['globals-tca'] = $GLOBALS['TCA'];
|
|
||||||
+ $state['request'] = $GLOBALS['TYPO3_REQUEST'] ?? null;
|
|
||||||
|
|
||||||
// Can be dropped when GeneralUtility::getIndpEnv() is abandoned
|
|
||||||
$generalUtilityReflection = new \ReflectionClass(GeneralUtility::class);
|
|
||||||
@@ -67,6 +68,7 @@ class FrameworkState
|
|
||||||
public static function reset()
|
|
||||||
{
|
|
||||||
unset($GLOBALS['BE_USER']);
|
|
||||||
+ unset($GLOBALS['TYPO3_REQUEST']);
|
|
||||||
|
|
||||||
$generalUtilityReflection = new \ReflectionClass(GeneralUtility::class);
|
|
||||||
$generalUtilityIndpEnvCache = $generalUtilityReflection->getProperty('indpEnvCache');
|
|
||||||
@@ -91,6 +93,7 @@ class FrameworkState
|
|
||||||
}
|
|
||||||
|
|
||||||
$GLOBALS['TCA'] = $state['globals-tca'];
|
|
||||||
+ $GLOBALS['TYPO3_REQUEST'] = $state['request'];
|
|
||||||
|
|
||||||
$generalUtilityReflection = new \ReflectionClass(GeneralUtility::class);
|
|
||||||
$generalUtilityIndpEnvCache = $generalUtilityReflection->getProperty('indpEnvCache');
|
|
|
@ -49,8 +49,7 @@
|
||||||
"composer-exit-on-patch-failure": true,
|
"composer-exit-on-patch-failure": true,
|
||||||
"patches": {
|
"patches": {
|
||||||
"typo3/testing-framework": {
|
"typo3/testing-framework": {
|
||||||
"Fix TypoScript record creation": "Patches/testing-framework-ts-record.patch",
|
"Fix TypoScript record creation": "Patches/testing-framework-ts-record.patch"
|
||||||
"Fix Request state": "Patches/testing-framework-request-state.patch"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typo3/cms": {
|
"typo3/cms": {
|
||||||
|
|
Loading…
Reference in a new issue