X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fsrc%2FFunctional%2FEntity%2FUpdate%2FLangcodeToAsciiUpdateTest.php;h=653a437239517a8e02383289eb7e236414f663a2;hp=d1a3cabb06ed2aa2f33bf8528193365c29349e8b;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php b/web/core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php index d1a3cabb0..653a43723 100644 --- a/web/core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php +++ b/web/core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php @@ -9,6 +9,7 @@ use Drupal\FunctionalTests\Update\UpdatePathTestBase; * Tests that the entity langcode fields have been updated to varchar_ascii. * * @group Entity + * @group legacy */ class LangcodeToAsciiUpdateTest extends UpdatePathTestBase { @@ -39,7 +40,8 @@ class LangcodeToAsciiUpdateTest extends UpdatePathTestBase { ]; foreach ($tables as $table => $columns) { foreach ($columns as $column) { - $this->assertEqual('utf8mb4_general_ci', $this->getColumnCollation($table, $column), 'Found correct starting collation for ' . $table . '.' . $column); + // Depending on MYSQL versions you get different collations. + $this->assertContains($this->getColumnCollation($table, $column), ['utf8mb4_0900_ai_ci', 'utf8mb4_general_ci'], 'Found correct starting collation for ' . $table . '.' . $column); } }