.../Functional/EntityResource/Term/TermResourceTestBase.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/modules/rest/tests/src/Functional/EntityResource/Term/TermResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/Term/TermResourceTestBase.php index 8a0cffb..e0e8eef 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/Term/TermResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/Term/TermResourceTestBase.php @@ -318,6 +318,16 @@ public function testGetTermWithParent(array $parent_term_ids) { $this->setUpAuthorization('GET'); $response = $this->request('GET', $url, $request_options); $expected = $this->getExpectedNormalizedEntity(); + $expected += [ + 'field_rest_test_multivalue' => [ + 0 => [ + 'value' => 'One', + ], + 1 => [ + 'value' => 'Two', + ], + ] + ]; static::recursiveKSort($expected); $actual = $this->serializer->decode((string) $response->getBody(), static::$format); static::recursiveKSort($actual);