public function CommentXmlBasicAuthTest::testPostDxWithoutCriticalBaseFields in Drupal 10
Same name and namespace in other branches
- 8 core/modules/comment/tests/src/Functional/Rest/CommentXmlBasicAuthTest.php \Drupal\Tests\comment\Functional\Rest\CommentXmlBasicAuthTest::testPostDxWithoutCriticalBaseFields()
- 9 core/modules/comment/tests/src/Functional/Rest/CommentXmlBasicAuthTest.php \Drupal\Tests\comment\Functional\Rest\CommentXmlBasicAuthTest::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/ CommentXmlBasicAuthTest.php, line 44
Class
- CommentXmlBasicAuthTest
- @group rest
Namespace
Drupal\Tests\comment\Functional\RestCode
public function testPostDxWithoutCriticalBaseFields() {
// Deserialization of the XML format is not supported.
$this
->markTestSkipped();
}