File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
lib/internal/Magento/Framework/Test/Unit/DB/Adapter Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1854
1854
<argument name =" supportedVersionPatterns" xsi : type =" array" >
1855
1855
<item name =" MySQL-8" xsi : type =" string" >^8\.0\.</item >
1856
1856
<item name =" MySQL-5.7" xsi : type =" string" >^5\.7\.</item >
1857
- <item name =" MariaDB-(10.2-10.4 )" xsi : type =" string" >^10\.[2-4 ]\.</item >
1857
+ <item name =" MariaDB-(10.2-10.6 )" xsi : type =" string" >^10\.[2-6 ]\.</item >
1858
1858
</argument >
1859
1859
</arguments >
1860
1860
</type >
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class SqlVersionProviderTest extends TestCase
50
50
private $ supportedVersionPatterns = [
51
51
'MySQL-8 ' => '^8\.0\. ' ,
52
52
'MySQL-5.7 ' => '^5\.7\. ' ,
53
- 'MariaDB-(10.2-10.4 ) ' => '^10\.[2-4 ]\. '
53
+ 'MariaDB-(10.2-10.6 ) ' => '^10\.[2-6 ]\. '
54
54
];
55
55
56
56
/**
@@ -94,7 +94,7 @@ public function testGetSqlVersionProviderReturnsRightResponse(
94
94
*/
95
95
public function testSqlVersionProviderThrowsExceptionWhenNonSupportedEngineUsed (): void
96
96
{
97
- $ this ->prepareSqlProviderAndMySQLAdapter (['version ' => '10.5 .0-MariaDB-1:10.5 .0+maria~bionic ' ]);
97
+ $ this ->prepareSqlProviderAndMySQLAdapter (['version ' => '10.7 .0-MariaDB-1:10.7 .0+maria~bionic ' ]);
98
98
$ this ->expectExceptionMessage ('Current version of RDBMS is not supported. ' );
99
99
$ this ->expectException (ConnectionException::class);
100
100
$ this ->sqlVersionProvider ->getSqlVersion ();
@@ -106,6 +106,10 @@ public function testSqlVersionProviderThrowsExceptionWhenNonSupportedEngineUsed(
106
106
public function executeDataProvider (): array
107
107
{
108
108
return [
109
+ 'MariaDB-10.6 ' => [
110
+ ['version ' => '10.6.10-MariaDB ' ],
111
+ '10.6. '
112
+ ],
109
113
'MariaDB-10.4 ' => [
110
114
['version ' => '10.4.12-MariaDB-1:10.4.12+maria~bionic ' ],
111
115
'10.4. '
You can’t perform that action at this time.
0 commit comments