$this->
assertEquals("dedicated table - {
$translation->
id()} - delta 0 - value 2 - ro",
$translation->test_multiple_properties_multiple_values
[0
]->value2
);
$this->
assertEquals("dedicated table - {
$translation->
id()} - delta 1 - value 1 - ro",
$translation->test_multiple_properties_multiple_values
[1
]->value1
);
$this->
assertEquals("dedicated table - {
$translation->
id()} - delta 1 - value 2 - ro",
$translation->test_multiple_properties_multiple_values
[1
]->value2
);
} } if ($revisionable) { $revisions_result =
$this->entityTypeManager
->
getStorage($this->entityTypeId
) ->
getQuery() ->
accessCheck(FALSE
) ->
allRevisions() ->
execute();
$revisions =
$this->entityTypeManager->
getStorage($this->entityTypeId
)->
loadMultipleRevisions(array_keys($revisions_result));
$this->
assertCount(6,
$revisions);
foreach ($revisions as $revision) { /** @var \Drupal\Core\Entity\ContentEntityInterface $revision */
$revision_label =
$revision->
isDefaultRevision() ? NULL : ' - rev2';
$this->
assertEquals("test entity - {
$revision->
id()} - en{
$revision_label}",
$revision->
label());
$this->
assertEquals("bundle field - {
$revision->
id()} - en{
$revision_label}",
$revision->new_bundle_field->value
);
$this->
assertEquals("shared table - {
$revision->
id()} - value 1 - en{
$revision_label}",
$revision->test_multiple_properties->value1
);
$this->
assertEquals("shared table - {
$revision->
id()} - value 2 - en{
$revision_label}",
$revision->test_multiple_properties->value2
);