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