Skip to content

Commit e314118

Browse files
committed
ACP2E-4367: Incompatibility with MariaDB 10.11
1 parent 4ec494e commit e314118

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/internal/Magento/Framework/DB/Test/Unit/Adapter/SqlVersionProviderTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ protected function setUp(): void
4444
* @dataProvider mariaDbSuffixKeyDataProvider
4545
*/
4646
public function testGetMariaDbSuffixKey(
47-
string $sqlVersionString,
4847
string $sqlExactVersion,
4948
string $expectedSuffixKey
5049
): void {
@@ -74,29 +73,22 @@ public static function mariaDbSuffixKeyDataProvider(): array
7473
{
7574
return [
7675
'version below threshold uses default suffix (10.6.11)' => [
77-
'sqlVersionString' => 'MariaDB-10.2.44',
78-
// < 10.4.27 → outer if not entered → default suffix
7976
'sqlExactVersion' => '10.2.44',
8077
'expectedSuffixKey' => SqlVersionProvider::MARIA_DB_10_6_11_VERSION,
8178
],
8279
'MariaDB 10.4.x at/above 10.4.27 uses 10.4.27 suffix' => [
83-
'sqlVersionString' => SqlVersionProvider::MARIA_DB_10_4_VERSION, // e.g. "MariaDB-10.4"
8480
'sqlExactVersion' => '10.4.27',
8581
'expectedSuffixKey' => SqlVersionProvider::MARIA_DB_10_4_27_VERSION,
8682
],
8783
'MariaDB 10.6.x at/above 10.4.27 uses 10.6.11 suffix' => [
88-
'sqlVersionString' => SqlVersionProvider::MARIA_DB_10_6_VERSION, // e.g. "MariaDB-10.6"
8984
'sqlExactVersion' => '10.6.11',
9085
'expectedSuffixKey' => SqlVersionProvider::MARIA_DB_10_6_11_VERSION,
9186
],
9287
'MariaDB 11.4.x at/above threshold maps to 10.6.11 suffix' => [
93-
'sqlVersionString' => SqlVersionProvider::MARIA_DB_11_4_VERSION, // e.g. "MariaDB-11.4"
9488
'sqlExactVersion' => '11.4.3',
95-
// branch: $isMariaDB114 → return 10.6.11 suffix
9689
'expectedSuffixKey' => SqlVersionProvider::MARIA_DB_10_6_11_VERSION,
9790
],
9891
'MariaDB 10.11.x at/above threshold uses 10.11 suffix' => [
99-
'sqlVersionString' => SqlVersionProvider::MARIA_DB_10_11_VERSION, // e.g. "MariaDB-10.11"
10092
'sqlExactVersion' => '10.11.6',
10193
'expectedSuffixKey' => SqlVersionProvider::MARIA_DB_10_11_VERSION,
10294
],

0 commit comments

Comments
 (0)