function XmlEntityNormalizationQuirksTrait::xmlEntityNormalizationQuirksTraitSkipTests
Marks some tests as skipped because XML cannot be deserialized.
@before
File
- 
              core/
modules/ rest/ tests/ src/ Functional/ EntityResource/ XmlEntityNormalizationQuirksTrait.php, line 33  
Class
- XmlEntityNormalizationQuirksTrait
 - Trait for EntityResourceTestBase subclasses testing $format='xml'.
 
Namespace
Drupal\Tests\rest\Functional\EntityResourceCode
public function xmlEntityNormalizationQuirksTraitSkipTests() : void {
  if (in_array($this->name(), [
    'testPatch',
    'testPost',
  ], TRUE)) {
    $this->markTestSkipped('Deserialization of the XML format is not supported.');
  }
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.