Skip to content

Commit

Permalink
[TASK] Use utf8mb4 in ac tests (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli42 authored Apr 2, 2024
1 parent 35e0004 commit b9c64f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/Core/Acceptance/Extension/BackendEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,11 @@ public function bootstrapTypo3Environment(SuiteEvent $suiteEvent)
// Append the unique identifier to the base database name to end up with a single database per test case
$localConfiguration['DB']['Connections']['Default']['dbname'] = $originalDatabaseName . '_at';
$testbase->testDatabaseNameIsNotTooLong($originalDatabaseName, $localConfiguration);
if ($dbDriver === 'mysqli' || $dbDriver === 'pdo_mysql') {
$localConfiguration['DB']['Connections']['Default']['charset'] = 'utf8mb4';
$localConfiguration['DB']['Connections']['Default']['tableoptions']['charset'] = 'utf8mb4';
$localConfiguration['DB']['Connections']['Default']['tableoptions']['collate'] = 'utf8mb4_unicode_ci';
}
} else {
// sqlite dbs of all tests are stored in a dir parallel to instance roots. Allows defining this path as tmpfs.
$this->output->debug('Database Connection: ' . json_encode($localConfiguration['DB']));
Expand Down

0 comments on commit b9c64f3

Please sign in to comment.