diff --git a/core/modules/system/lib/Drupal/system/Tests/Serialization/EntitySerializationTest.php b/core/modules/system/lib/Drupal/system/Tests/Serialization/EntitySerializationTest.php index 374115b..8696fea 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Serialization/EntitySerializationTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Serialization/EntitySerializationTest.php @@ -130,17 +130,9 @@ public function testSerialize() { $actual = $serializer->serialize($normalized, 'ajax'); $this->assertIdentical($actual, $expected, 'A normalized array serializes to JSON when "ajax" is requested'); // Test 'xml'. The expected output should match that of Symfony's XmlEncoder. - $base_encoder = new BaseXmlEncoder(); - $normalized = $serializer->normalize($this->entity, 'xml'); - // We need to pass the normalized array structure to this. - $expected = $base_encoder->encode($normalized, 'xml'); - - // Test the expected XML response is correct. - $expected_test =' + $expected =' 11' . $this->entity->uuid() . 'und' . $this->values['name'] . '1' . $this->values['field_test_text']['value'] . 'full_html '; - $this->assertIdentical($expected, $expected_test, 'The expected XML response is correct.'); - $actual = $serializer->serialize($this->entity, 'xml'); $this->assertIdentical($actual, $expected, 'Entity serializes to XML when "xml" is requested.'); $actual = $serializer->serialize($normalized, 'xml');