From 8520b5589860b7147f2a1fe533a7c46396524570 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Thu, 13 Jan 2022 03:26:30 +0100 Subject: [PATCH] [CLEANUP] Remove code specific to TYPO3 9LTS (#367) --- Tests/Functional/Controller/TeaControllerTest.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Tests/Functional/Controller/TeaControllerTest.php b/Tests/Functional/Controller/TeaControllerTest.php index ee6f825..f1f930f 100644 --- a/Tests/Functional/Controller/TeaControllerTest.php +++ b/Tests/Functional/Controller/TeaControllerTest.php @@ -5,7 +5,6 @@ declare(strict_types=1); namespace TTN\Tea\Tests\Functional\Controller; use Nimut\TestingFramework\TestCase\FunctionalTestCase; -use TYPO3\CMS\Core\Utility\VersionNumberUtility; /** * @covers \TTN\Tea\Controller\TeaController @@ -32,8 +31,7 @@ class TeaControllerTest extends FunctionalTestCase $this->setUpFrontendRootPage( 1, [ - 'EXT:fluid_styled_content/Configuration/TypoScript/setup.' - . ($this->isTYPO3VersionAbove10() ? 'typoscript' : 'txt'), + 'EXT:fluid_styled_content/Configuration/TypoScript/setup.typoscript', 'EXT:tea/Configuration/TypoScript/setup.typoscript', 'EXT:tea/Tests/Functional/Controller/Fixtures/Frontend/Basic.typoscript', ] @@ -50,12 +48,4 @@ class TeaControllerTest extends FunctionalTestCase $teaTitle = 'Earl Grey'; self::assertStringContainsString($teaTitle, $responseContent); } - - /** - * @return bool - */ - protected function isTYPO3VersionAbove10(): bool - { - return VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) >= 10000000; - } }