diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityLoadedRevisionTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityLoadedRevisionTest.php index f4f1d43..a3b99fe 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityLoadedRevisionTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityLoadedRevisionTest.php @@ -31,7 +31,6 @@ protected function setUp() { parent::setUp(); $this->installEntitySchema('entity_test_mulrev'); - } /** @@ -76,6 +75,9 @@ public function testLoadedRevisionId() { $this->assertEquals($loaded->getRevisionId(), $loaded->getLoadedRevisionId()); } + /** + * Tests the loaded revision ID after an entity re-save, clone and duplicate. + */ public function testLoadedRevisionIdWithNoNewRevision() { // Create a basic EntityTestMulRev entity and save it. $entity = EntityTestMulRev::create(); @@ -112,7 +114,7 @@ public function testLoadedRevisionIdWithNoNewRevision() { } /** - * Tests the loaded revision ID works on a multilingual site. + * Tests the loaded revision ID for translatable entities. */ public function testTranslatedLoadedRevisionId() { ConfigurableLanguage::createFromLangcode('fr')->save(); @@ -153,7 +155,7 @@ public function testTranslatedLoadedRevisionId() { } /** - * Test calling save() in entity_test_entity_insert() sets the correct ID. + * Tests re-saving the entity in entity_test_entity_insert(). */ public function testSaveInHookEntityInsert() { // Create an entity which will be saved again in entity_test_entity_insert(). @@ -164,4 +166,5 @@ public function testSaveInHookEntityInsert() { $this->assertEquals($entity->getRevisionId(), $entity->getLoadedRevisionId()); } + }