diff --cc core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php index e49ee7e,8b6b7e4..0000000 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php @@@ -102,9 -102,7 +102,10 @@@ class EntityDefinitionUpdateTest extend $expected = array( 'entity_test_update' => array( t('The %entity_type entity type needs to be updated.', ['%entity_type' => $this->entityManager->getDefinition('entity_test_update')->getLabel()]), + // The revision key is now defined, so the revision field needs to be + // created. + t('The %field_name field needs to be installed.', ['%field_name' => 'Revision ID']), + t('The %field_name field needs to be installed.', ['%field_name' => $this->entityManager->getFieldStorageDefinitions('entity_test_update')['revision_uuid']->getLabel()]), ), ); $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected); //, 'EntityDefinitionUpdateManager reports the expected change summary.'); diff --cc core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php index 5dc1a94,e51b132..0000000 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php @@@ -573,12 -572,9 +573,11 @@@ class EntityFieldTest extends EntityKer // Field format. NULL, ); + - if ($entity instanceof RevisionLogInterface) { - // Adding empty string for revision message. - $target_strings[] = ''; + if ($uuid = $entity->getRevisionUuid()) { + $target_strings[] = $uuid; } + asort($strings); asort($target_strings); $this->assertEqual(array_values($strings), array_values($target_strings), format_string('%entity_type: All contained strings found.', array('%entity_type' => $entity_type)));