mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 05:56:11 +01:00
[CLEANUP] Remove code specific to TYPO3 9LTS (#367)
This commit is contained in:
parent
34eaf0cab1
commit
8520b55898
1 changed files with 1 additions and 11 deletions
|
@ -5,7 +5,6 @@ declare(strict_types=1);
|
||||||
namespace TTN\Tea\Tests\Functional\Controller;
|
namespace TTN\Tea\Tests\Functional\Controller;
|
||||||
|
|
||||||
use Nimut\TestingFramework\TestCase\FunctionalTestCase;
|
use Nimut\TestingFramework\TestCase\FunctionalTestCase;
|
||||||
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers \TTN\Tea\Controller\TeaController
|
* @covers \TTN\Tea\Controller\TeaController
|
||||||
|
@ -32,8 +31,7 @@ class TeaControllerTest extends FunctionalTestCase
|
||||||
$this->setUpFrontendRootPage(
|
$this->setUpFrontendRootPage(
|
||||||
1,
|
1,
|
||||||
[
|
[
|
||||||
'EXT:fluid_styled_content/Configuration/TypoScript/setup.'
|
'EXT:fluid_styled_content/Configuration/TypoScript/setup.typoscript',
|
||||||
. ($this->isTYPO3VersionAbove10() ? 'typoscript' : 'txt'),
|
|
||||||
'EXT:tea/Configuration/TypoScript/setup.typoscript',
|
'EXT:tea/Configuration/TypoScript/setup.typoscript',
|
||||||
'EXT:tea/Tests/Functional/Controller/Fixtures/Frontend/Basic.typoscript',
|
'EXT:tea/Tests/Functional/Controller/Fixtures/Frontend/Basic.typoscript',
|
||||||
]
|
]
|
||||||
|
@ -50,12 +48,4 @@ class TeaControllerTest extends FunctionalTestCase
|
||||||
$teaTitle = 'Earl Grey';
|
$teaTitle = 'Earl Grey';
|
||||||
self::assertStringContainsString($teaTitle, $responseContent);
|
self::assertStringContainsString($teaTitle, $responseContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
protected function isTYPO3VersionAbove10(): bool
|
|
||||||
{
|
|
||||||
return VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) >= 10000000;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue