.../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 735ba83..e4c7ce8 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php @@ -928,7 +928,7 @@ public function testPost() { if ($created_entity->hasField($field_name)) { // Subset, not same, because we can e.g. send just the target_id for the // bundle in a POST request; the response will include more properties. - $this->assertArraySubset(static::castToString($field_normalization), $created_entity_normalization[$field_name], TRUE); + $this->assertArraySubset(static::castToString($field_normalization), static::castToString($created_entity_normalization[$field_name]), TRUE); } } } @@ -1188,7 +1188,7 @@ public function testPatch() { if ($updated_entity->hasField($field_name)) { // Subset, not same, because we can e.g. send just the target_id for the // bundle in a PATCH request; the response will include more properties. - $this->assertArraySubset(static::castToString($field_normalization), $updated_entity_normalization[$field_name], TRUE); + $this->assertArraySubset(static::castToString($field_normalization), static::castToString($updated_entity_normalization[$field_name]), TRUE); } } // Ensure that fields do not get deleted if they're not present in the PATCH