3 namespace Drupal\Tests\comment\Functional\Rest;
5 use Drupal\Tests\rest\Functional\AnonResourceTestTrait;
6 use Drupal\Tests\rest\Functional\EntityResource\XmlEntityNormalizationQuirksTrait;
11 class CommentXmlAnonTest extends CommentResourceTestBase {
13 use AnonResourceTestTrait;
14 use XmlEntityNormalizationQuirksTrait;
19 protected static $format = 'xml';
24 protected static $mimeType = 'text/xml; charset=UTF-8';
29 * Anonymous users cannot edit their own comments.
31 * @see \Drupal\comment\CommentAccessControlHandler::checkAccess
33 * Therefore we grant them the 'administer comments' permission for the
34 * purpose of this test.
36 * @see ::setUpAuthorization
38 protected static $patchProtectedFieldNames = [
50 public function testPostDxWithoutCriticalBaseFields() {
51 // Deserialization of the XML format is not supported.
52 $this->markTestSkipped();
58 public function testPostSkipCommentApproval() {
59 // Deserialization of the XML format is not supported.
60 $this->markTestSkipped();