diff -u b/core/modules/system/src/Tests/Database/SchemaTest.php b/core/modules/system/src/Tests/Database/SchemaTest.php --- b/core/modules/system/src/Tests/Database/SchemaTest.php +++ b/core/modules/system/src/Tests/Database/SchemaTest.php @@ -71,12 +71,14 @@ $columns = db_query('SHOW FULL COLUMNS FROM {test_table}'); foreach ($columns as $column) { if ($column->Field == 'test_field_string') { - $this->assertTrue($column->Collation == 'utf8_general_ci'); + $string_check = ($column->Collation == 'utf8_general_ci'); } if ($column->Field == 'test_field_string_ascii') { - $this->assertTrue($column->Collation == 'ascii_general_ci'); + $string_ascii_check = ($column->Collation == 'ascii_general_ci'); } } + $this->assertTrue(!empty($string_check), 'string field has the right collation.'); + $this->assertTrue(!empty($string_ascii_check), 'ASCII string field has the right collation.'); // An insert without a value for the column 'test_table' should fail. $this->assertFalse($this->tryInsert(), 'Insert without a default failed.');