diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php index 9c8ec4f..6c173ca 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php @@ -306,6 +306,7 @@ public function testFieldAccess() { $uuid = \Drupal::service('uuid')->generate(); $entity = EntityTest::create([ + 'id' => 10, 'name' => 'a_test_entity', 'uuid' => $uuid, ]); @@ -320,6 +321,7 @@ public function testFieldAccess() { // Save the entity and check that we can not update the ID or UUID fields // anymore. $entity->save(); + $this->assertSame('10', $entity->id()); $this->assertSame($uuid, $entity->uuid()); $this->assertFalse($entity->get('uuid')->access('edit'));