.../tests/src/Functional/EntityResource/EntityResourceTestBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php index a07961c..94ca8f5 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php @@ -1319,10 +1319,10 @@ protected function makeNormalizationInvalid(array $normalization, $field_name) { $normalization[$label_field][1]['value'] = 'Second Title'; break; case 'id': - $normalization['id'][0]['value'] = $this->anotherEntity->id(); + $normalization[$this->entity->getEntityType()->getKey('id')][0]['value'] = $this->anotherEntity->id(); break; case 'uuid': - $normalization['uuid'][0]['value'] = $this->anotherEntity->uuid(); + $normalization[$this->entity->getEntityType()->getKey('uuid')][0]['value'] = $this->anotherEntity->uuid(); break; } return $normalization;