diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityOriginalRevisionTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityOriginalRevisionTest.php index 9e15d78..38aa639 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityOriginalRevisionTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityOriginalRevisionTest.php @@ -29,8 +29,7 @@ protected function setUp() { } /** - * Tests the original revision id is set and returned at the right point in - * the entity process. + * Test getOriginalRevisionId() returns the correct ID throughout the process. */ public function testOriginalRevisionId() { // Create a basic EntityTestMulRev entity and save it. @@ -50,8 +49,8 @@ public function testOriginalRevisionId() { $loaded->save(); - // In entity_test_update the original revision id was stored in state. This - // should be the same as we had before calling $loaded->save(). + // In entity_test_update() the original revision id was stored in state. + // This should be the same as we had before calling $loaded->save(). /** @var \Drupal\Core\Entity\ContentEntityInterface $loaded_original */ $originalRevisionId = \Drupal::state()->get('entity_test.originalRevisionId'); $this->assertEquals($entity->getRevisionId(), $originalRevisionId); @@ -72,9 +71,9 @@ public function testOriginalRevisionId() { $loaded->save(); - // After saving, the original revision id set in entity_test and returned - // from the entity should be the same and the entity's revision id because - // a new revision wasn't created, the existing revision was updated. + // After saving, the original revision id set in entity_test_update() and + // returned from the entity should be the same and the entity's revision id + // because a new revision wasn't created, the existing revision was updated. $originalRevisionId2 = \Drupal::state()->get('entity_test.originalRevisionId'); $this->assertEquals($loaded->getRevisionId(), $originalRevisionId2); $this->assertEquals($loaded->getRevisionId(), $loaded->getOriginalRevisionId());