public function CommentXmlAnonTest::testPostDxWithoutCriticalBaseFields in Drupal 10
Same name and namespace in other branches
- 8 core/modules/comment/tests/src/Functional/Rest/CommentXmlAnonTest.php \Drupal\Tests\comment\Functional\Rest\CommentXmlAnonTest::testPostDxWithoutCriticalBaseFields()
- 9 core/modules/comment/tests/src/Functional/Rest/CommentXmlAnonTest.php \Drupal\Tests\comment\Functional\Rest\CommentXmlAnonTest::testPostDxWithoutCriticalBaseFields()
Tests POSTing a comment without critical base fields.
Tests with the most minimal normalization possible: the one returned by ::getNormalizedPostEntity().
But Comment entities have some very special edge cases:
- base fields that are not marked as required in \Drupal\comment\Entity\Comment::baseFieldDefinitions() yet in fact are required.
- base fields that are marked as required, but yet can still result in validation errors other than "missing required field".
Overrides CommentResourceTestBase::testPostDxWithoutCriticalBaseFields
File
- core/
modules/ comment/ tests/ src/ Functional/ Rest/ CommentXmlAnonTest.php, line 55
Class
- CommentXmlAnonTest
- @group rest
Namespace
Drupal\Tests\comment\Functional\RestCode
public function testPostDxWithoutCriticalBaseFields() {
// Deserialization of the XML format is not supported.
$this
->markTestSkipped();
}