function CommentResourceTestBase::setUp

Overrides EntityResourceTestBase::setUp

File

core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php, line 60

Class

CommentResourceTestBase
Resource test base for the comment entity.

Namespace

Drupal\Tests\comment\Functional\Rest

Code

protected function setUp() : void {
  if (static::$format === 'xml' && in_array($this->name(), [
    'testPostDxWithoutCriticalBaseFields',
    'testPostSkipCommentApproval',
  ], TRUE)) {
    $this->markTestSkipped('Deserialization of the XML format is not supported.');
  }
  parent::setUp();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.