Commit 8c44f208 authored by plach's avatar plach

Issue #2930197 by mondrake, amateescu: EntityDefinitionUpdateTest fails with...

Issue #2930197 by mondrake, amateescu: EntityDefinitionUpdateTest fails with contrib db driver (again)
parent 89e64c1f
......@@ -465,7 +465,9 @@ public function testBaseFieldDeleteWithExistingData($entity_type_id, $create_ent
// Only one row will be created for non-revisionable base fields.
$this->assertCount($base_field_revisionable ? 2 : 1, $result);
$this->assertSame([
// Use assertEquals and not assertSame here to prevent that a different
// sequence of the columns in the table will affect the check.
$this->assertEquals([
'bundle' => $entity->bundle(),
'deleted' => '1',
'entity_id' => $entity->id(),
......@@ -477,7 +479,9 @@ public function testBaseFieldDeleteWithExistingData($entity_type_id, $create_ent
// Two rows only exist if the base field is revisionable.
if ($base_field_revisionable) {
$this->assertSame([
// Use assertEquals and not assertSame here to prevent that a different
// sequence of the columns in the table will affect the check.
$this->assertEquals([
'bundle' => $entity->bundle(),
'deleted' => '1',
'entity_id' => $entity->id(),
......
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