Skip to content
Snippets Groups Projects
Unverified Commit 296a3274 authored by Morris Jobke's avatar Morris Jobke
Browse files

only disable unicode test on mysql

parent cc28f82b
No related branches found
No related tags found
No related merge requests found
......@@ -400,7 +400,7 @@ class LegacyDBTest extends \Test\TestCase {
/**
* @dataProvider insertAndSelectDataProvider
*/
public function testInsertAndSelectData($expected) {
public function testInsertAndSelectData($expected, $skipOnMysql) {
$table = "*PREFIX*{$this->text_table}";
$query = OC_DB::prepare("INSERT INTO `$table` (`textfield`) VALUES (?)");
......@@ -408,17 +408,21 @@ class LegacyDBTest extends \Test\TestCase {
$this->assertEquals(1, $result);
$actual = OC_DB::prepare("SELECT `textfield` FROM `$table`")->execute()->fetchOne();
$config = \OC::$server->getConfig();
if($skipOnMysql && $config->getSystemValue('dbtype', 'sqlite') === 'mysql' && $config->getSystemValue('mysql.utf8mb4', false) === false) {
return;
}
$this->assertSame($expected, $actual);
}
public function insertAndSelectDataProvider() {
return [
['abcdefghijklmnopqrstuvwxyzABCDEFGHIKLMNOPQRSTUVWXYZ'],
['0123456789'],
['äöüÄÖÜß!"§$%&/()=?#\'+*~°^`´'],
['²³¼½¬{[]}\\'],
['♡⚗'],
['💩'], # :hankey: on github
['abcdefghijklmnopqrstuvwxyzABCDEFGHIKLMNOPQRSTUVWXYZ', false],
['0123456789', false],
['äöüÄÖÜß!"§$%&/()=?#\'+*~°^`´', false],
['²³¼½¬{[]}\\', false],
['♡⚗', false],
['💩', true], # :hankey: on github
];
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment