diff --git a/core/modules/rest/lib/Drupal/rest/Tests/UpdateTest.php b/core/modules/rest/lib/Drupal/rest/Tests/UpdateTest.php index 34faae4..2d60c33 100644 --- a/core/modules/rest/lib/Drupal/rest/Tests/UpdateTest.php +++ b/core/modules/rest/lib/Drupal/rest/Tests/UpdateTest.php @@ -52,7 +52,6 @@ public function testPatchUpdate() { // Create a second stub entity where the UUID is different. $patch_entity = entity_create($entity_type, array()); - $patch_entity->{$entity_info['entity_keys']['id']} = $entity->id(); $serialized = $serializer->serialize($patch_entity, 'drupal_jsonld'); // Update the entity over the web API. @@ -64,7 +63,6 @@ public function testPatchUpdate() { $this->assertEqual($entity->uuid(), $patch_entity->uuid(), 'UUID was successfully updated.'); // Try to empty a field. - $patch_entity->uuid = NULL; $normalized = $serializer->normalize($patch_entity, 'drupal_jsonld'); $normalized['field_test_text'] = array(); $serialized = $serializer->encode($normalized, 'jsonld');