diff --git a/core/modules/system/src/Tests/Database/SchemaTest.php b/core/modules/system/src/Tests/Database/SchemaTest.php index b807fd8..0a44375 100644 --- a/core/modules/system/src/Tests/Database/SchemaTest.php +++ b/core/modules/system/src/Tests/Database/SchemaTest.php @@ -213,9 +213,8 @@ function tryInsert($table = 'test_table') { function checkSchemaComment($description, $table, $column = NULL) { if (method_exists(Database::getConnection()->schema(), 'getComment')) { $comment = Database::getConnection()->schema()->getComment($table, $column); - $db_type = Database::getConnection()->databaseType(); // The schema comment truncation for mysql is different. - if ($db_type == 'mysql') { + if (Database::getConnection()->databaseType() == 'mysql') { $max_length = $column ? 255 : 60; $description = Unicode::truncate($description, $max_length, TRUE, TRUE); }