function XmlEntityNormalizationQuirksTrait::xmlEntityNormalizationQuirksTraitSkipTests

Same name in other branches
  1. 10 core/modules/rest/tests/src/Functional/EntityResource/XmlEntityNormalizationQuirksTrait.php \Drupal\Tests\rest\Functional\EntityResource\XmlEntityNormalizationQuirksTrait::xmlEntityNormalizationQuirksTraitSkipTests()

Marks some tests as skipped because XML cannot be deserialized.

File

core/modules/rest/tests/src/Functional/EntityResource/XmlEntityNormalizationQuirksTrait.php, line 32

Class

XmlEntityNormalizationQuirksTrait
Trait for EntityResourceTestBase subclasses testing $format='xml'.

Namespace

Drupal\Tests\rest\Functional\EntityResource

Code

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.