.../MenuLinkContent/MenuLinkContentXmlAnonTest.php | 26 ++++++++++++++++ .../MenuLinkContentXmlBasicAuthTest.php | 36 ++++++++++++++++++++++ .../MenuLinkContentXmlCookieTest.php | 31 +++++++++++++++++++ .../src/Functional/XmlNormalizationQuirksTrait.php | 5 ++- 4 files changed, 97 insertions(+), 1 deletion(-) diff --git a/core/modules/rest/tests/src/Functional/EntityResource/MenuLinkContent/MenuLinkContentXmlAnonTest.php b/core/modules/rest/tests/src/Functional/EntityResource/MenuLinkContent/MenuLinkContentXmlAnonTest.php new file mode 100644 index 0000000..5141cb7 --- /dev/null +++ b/core/modules/rest/tests/src/Functional/EntityResource/MenuLinkContent/MenuLinkContentXmlAnonTest.php @@ -0,0 +1,26 @@ + $value) { - if ($value === []) { + if ($value === [] || $value === NULL) { $normalization[$key] = ''; } + elseif (is_array($value)) { + $normalization[$key] = $this->applyXmlDecodingQuirks($value); + } } return $normalization; }