From a014ea7efbb305d076d67765df3d7053225c8ae8 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Mon, 15 Apr 2024 09:24:22 +0200 Subject: [PATCH] [BUGFIX] Load realistic, full TypoScript in the controller tests (#1224) To be closer to a real-world scenario, we also should load the constants of fluid_styled_content and the constants and setup of our own extension. --- Tests/Functional/Controller/TeaControllerTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tests/Functional/Controller/TeaControllerTest.php b/Tests/Functional/Controller/TeaControllerTest.php index 2006895..d12d8d7 100644 --- a/Tests/Functional/Controller/TeaControllerTest.php +++ b/Tests/Functional/Controller/TeaControllerTest.php @@ -26,8 +26,13 @@ final class TeaControllerTest extends FunctionalTestCase $this->importCSVDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.csv'); $this->setUpFrontendRootPage(1, [ + 'constants' => [ + 'EXT:fluid_styled_content/Configuration/TypoScript/constants.typoscript', + 'EXT:tea/Configuration/TypoScript/constants.typoscript', + ], 'setup' => [ 'EXT:fluid_styled_content/Configuration/TypoScript/setup.typoscript', + 'EXT:tea/Configuration/TypoScript/setup.typoscript', 'EXT:tea/Tests/Functional/Controller/Fixtures/TypoScript/Setup/Rendering.typoscript', ], ]);