22c1b858f5e35a75345f91010085cb36253e6dd1
[yaffs-website] / web / core / modules / comment / tests / src / Functional / Rest / CommentXmlAnonTest.php
1 <?php
2
3 namespace Drupal\Tests\comment\Functional\Rest;
4
5 use Drupal\Tests\rest\Functional\AnonResourceTestTrait;
6 use Drupal\Tests\rest\Functional\EntityResource\XmlEntityNormalizationQuirksTrait;
7
8 /**
9  * @group rest
10  */
11 class CommentXmlAnonTest extends CommentResourceTestBase {
12
13   use AnonResourceTestTrait;
14   use XmlEntityNormalizationQuirksTrait;
15
16   /**
17    * {@inheritdoc}
18    */
19   protected static $format = 'xml';
20
21   /**
22    * {@inheritdoc}
23    */
24   protected static $mimeType = 'text/xml; charset=UTF-8';
25
26   /**
27    * {@inheritdoc}
28    *
29    * Anonymous users cannot edit their own comments.
30    *
31    * @see \Drupal\comment\CommentAccessControlHandler::checkAccess
32    *
33    * Therefore we grant them the 'administer comments' permission for the
34    * purpose of this test.
35    *
36    * @see ::setUpAuthorization
37    */
38   protected static $patchProtectedFieldNames = [
39     'pid',
40     'entity_id',
41     'changed',
42     'thread',
43     'entity_type',
44     'field_name',
45   ];
46
47   /**
48    * {@inheritdoc}
49    */
50   public function testPostDxWithoutCriticalBaseFields() {
51     // Deserialization of the XML format is not supported.
52     $this->markTestSkipped();
53   }
54
55   /**
56    * {@inheritdoc}
57    */
58   public function testPostSkipCommentApproval() {
59     // Deserialization of the XML format is not supported.
60     $this->markTestSkipped();
61   }
62
63 }