Skip to content

Commit ee62a11

Browse files
authored
[TASK] Avoid obsolete TS constant (#540)
Setting TS constant 'databasePlatform' for tests that require TS setup is a relict from the past and can be removed.
1 parent 947b13b commit ee62a11

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Classes/Core/Functional/FunctionalTestCase.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* The TYPO3 project - inspiring people to share!
1818
*/
1919

20-
use Doctrine\DBAL\Platforms\PostgreSQLPlatform as DoctrinePostgreSQLPlatform;
2120
use PHPUnit\Framework\ExpectationFailedException;
2221
use Psr\Container\ContainerInterface;
2322
use Psr\Http\Message\ResponseInterface;
@@ -863,12 +862,6 @@ protected function setUpFrontendRootPage(int $pageId, array $typoScriptFiles = [
863862
$templateFields['constants'] .= '@import \'' . $typoScriptFile . '\'' . LF;
864863
}
865864
}
866-
// @todo: Check if this constant is still needed
867-
$databasePlatform = 'mysql';
868-
if ($connection->getDatabasePlatform() instanceof DoctrinePostgreSQLPlatform) {
869-
$databasePlatform = 'postgresql';
870-
}
871-
$templateFields['constants'] .= 'databasePlatform = ' . $databasePlatform . LF;
872865
foreach ($typoScriptFiles['setup'] ?? [] as $typoScriptFile) {
873866
if (!str_starts_with($typoScriptFile, 'EXT:')) {
874867
// @deprecated will be removed in version 8, use "EXT:" syntax instead

0 commit comments

Comments
 (0)