'status' => 1,
]);
$user2->
save();
/** @var \Drupal\Core\Entity\EntityStorageInterface $storage */
$storage =
$this->container->
get('entity_type.manager'
) ->
getStorage('entity_test_mulrev_changed_rev'
);
/** @var \Drupal\entity_test\Entity\EntityTestMulRevChangedWithRevisionLog $entity */
$entity =
$storage->
create([ 'name' =>
$this->
randomString(),
]);
$entity->
setRevisionUserId($user1->
id());
$entity->
save();
$this->
assertFalse($entity->
hasTranslationChanges(), 'ContentEntityBase::hasTranslationChanges() found no changes after the entity has been saved.'
);
// Update the revision metadata fields and the changed field, which should
// be skipped from checking for changes in
// ContentEntityBase::hasTranslationChanges().
$entity_previous_rev_id =
$entity->
getRevisionId();
// Revision metadata field revision_timestamp.
$entity->
setRevisionCreationTime(time() + 1
);
// Revision metadata field revision_uid.