.../src/Functional/EntityResource/EntityResourceTestBase.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php index 94ca8f5..aacc151 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php @@ -1305,14 +1305,14 @@ protected function getEntityResourcePostUrl() { * * @param array $normalization * An entity normalization. - * @param string $field_name - * The field name whose normalization to make invalid. + * @param string $entity_key + * The entity key whose normalization to make invalid. * * @return array * The updated entity normalization, now invalid. */ - protected function makeNormalizationInvalid(array $normalization, $field_name) { - switch ($field_name) { + protected function makeNormalizationInvalid(array $normalization, $entity_key) { + switch ($entity_key) { case 'label': // Add a second label to this entity to make it invalid. $label_field = $this->entity->getEntityType()->hasKey('label') ? $this->entity->getEntityType()->getKey('label') : static::$labelFieldName;