Skip to content

Commit

Permalink
[TASK] Avoid obsolete TS constant (#540)
Browse files Browse the repository at this point in the history
Setting TS constant 'databasePlatform' for tests that
require TS setup is a relict from the past and can
be removed.
  • Loading branch information
lolli42 authored Feb 6, 2024
1 parent 947b13b commit ee62a11
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Classes/Core/Functional/FunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* The TYPO3 project - inspiring people to share!
*/

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

0 comments on commit ee62a11

Please sign in to comment.