More updates to stop using dev or alpha or beta versions.
[yaffs-website] / web / core / modules / rest / tests / src / Functional / EntityResource / Comment / CommentJsonAnonTest.php
1 <?php
2
3 namespace Drupal\Tests\rest\Functional\EntityResource\Comment;
4
5 use Drupal\Tests\rest\Functional\AnonResourceTestTrait;
6
7 /**
8  * @group rest
9  */
10 class CommentJsonAnonTest extends CommentResourceTestBase {
11
12   use AnonResourceTestTrait;
13
14   /**
15    * {@inheritdoc}
16    */
17   protected static $format = 'json';
18
19   /**
20    * {@inheritdoc}
21    */
22   protected static $mimeType = 'application/json';
23
24   /**
25    * {@inheritdoc}
26    *
27    * Anononymous users cannot edit their own comments.
28    *
29    * @see \Drupal\comment\CommentAccessControlHandler::checkAccess
30    *
31    * Therefore we grant them the 'administer comments' permission for the
32    * purpose of this test.
33    *
34    * @see ::setUpAuthorization
35    */
36   protected static $patchProtectedFieldNames = [
37     'pid',
38     'entity_id',
39     'changed',
40     'thread',
41     'entity_type',
42     'field_name',
43   ];
44
45 }