'typo3conf/sites', ]; protected function setUp(): void { parent::setUp(); $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', 'EXT:tea/Tests/Functional/Controller/Fixtures/TypoScript/Constants/PluginConfiguration.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', ], ]); } /** * @test */ public function indexActionRendersAllAvailableTeas(): void { $this->importCSVDataSet(__DIR__ . '/Fixtures/Database/ContentElementTeaIndex.csv'); $this->importCSVDataSet(__DIR__ . '/Fixtures/Database/Teas.csv'); $request = (new InternalRequest())->withPageId(1); $html = (string)$this->executeFrontendSubRequest($request)->getBody(); self::assertStringContainsString('Godesberger Burgtee', $html); self::assertStringContainsString('Oolong', $html); } }