diff --git a/core/modules/hal/lib/Drupal/hal/Tests/DenormalizeTest.php b/core/modules/hal/lib/Drupal/hal/Tests/DenormalizeTest.php index 910c14f..e1d7a30 100644 --- a/core/modules/hal/lib/Drupal/hal/Tests/DenormalizeTest.php +++ b/core/modules/hal/lib/Drupal/hal/Tests/DenormalizeTest.php @@ -206,7 +206,10 @@ public function testPatchDenormailzation() { // Assert that all fields are NULL and not set to default values. Example: // the UUID field is NULL and not initialized as usual. foreach ($denormalized as $field_name => $field) { - $this->assertFalse(isset($denormalized->$field_name), "$field_name is not set."); + // The 'langcode' field has always a value. + if ($field_name != 'langcode') { + $this->assertFalse(isset($denormalized->$field_name), "$field_name is not set."); + } } } }