diff --git a/Tests/Functional/AbstractFunctionalTestCase.php b/Tests/Functional/AbstractFunctionalTestCase.php index c406b7f..2538a5c 100644 --- a/Tests/Functional/AbstractFunctionalTestCase.php +++ b/Tests/Functional/AbstractFunctionalTestCase.php @@ -35,6 +35,10 @@ use Smalot\PdfParser\Parser; use TYPO3\CMS\Fluid\View\StandaloneView; use TYPO3\CMS\Core\Utility\GeneralUtility; +use TYPO3\CMS\Core\Core\SystemEnvironmentBuilder; +use TYPO3\CMS\Core\Http\ServerRequest; +use TYPO3\CMS\Core\TypoScript\AST\Node\RootNode; +use TYPO3\CMS\Core\TypoScript\FrontendTypoScript; /** * BaseFunctionalTest @@ -61,6 +65,13 @@ public function setUp(): void { parent::setUp(); + $frontendTypoScript = new FrontendTypoScript(new RootNode(), [], [], []); + $frontendTypoScript->setSetupArray([]); + + $GLOBALS['TYPO3_REQUEST'] = (new ServerRequest()) + ->withAttribute('applicationType', SystemEnvironmentBuilder::REQUESTTYPE_FE) + ->withAttribute('frontend.typoscript', $frontendTypoScript); + $baseTypoScripts = [ 'EXT:pdfviewhelpers/Configuration/TypoScript/setup.typoscript', $this->getFixtureExtPath('setup.typoscript'),