function CommentResourceTestBase::commentResourceTestBaseSkipTests
Same name in other branches
- 10 core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php \Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase::commentResourceTestBaseSkipTests()
Marks some tests as skipped because XML cannot be deserialized.
File
-
core/
modules/ comment/ tests/ src/ Functional/ Rest/ CommentResourceTestBase.php, line 57
Class
Namespace
Drupal\Tests\comment\Functional\RestCode
public function commentResourceTestBaseSkipTests() : void {
if (static::$format === 'xml' && in_array($this->name(), [
'testPostDxWithoutCriticalBaseFields',
'testPostSkipCommentApproval',
], 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.