Commit 5bba892a authored by xjm's avatar xjm
Browse files

Issue #2925750 by mondrake, amateescu, xjm: EntityDefinitionUpdateTest fails with contrib db driver

parent d0518c25
......@@ -441,7 +441,9 @@ public function testBaseFieldDeleteWithExistingData() {
'delta' => '0',
'new_base_field_value' => $entity->new_base_field->value,
];
$this->assertSame($expected, (array) $result[0]);
// Use assertEquals and not assertSame here to prevent that a different
// sequence of the columns in the table will affect the check.
$this->assertEquals($expected, (array) $result[0]);
// Check that the field storage definition is marked for purging.
$deleted_storage_definitions = \Drupal::service('entity_field.deleted_fields_repository')->getFieldStorageDefinitions();
......@@ -508,7 +510,9 @@ public function testBundleFieldDeleteWithExistingData() {
'delta' => '0',
'new_bundle_field_value' => $entity->new_bundle_field->value,
];
$this->assertSame($expected, (array) $result[0]);
// Use assertEquals and not assertSame here to prevent that a different
// sequence of the columns in the table will affect the check.
$this->assertEquals($expected, (array) $result[0]);
// Check that the field definition is marked for purging.
$deleted_field_definitions = \Drupal::service('entity_field.deleted_fields_repository')->getFieldDefinitions();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment