723df956012adb77a0852f8d15b772ed5c73e623
[yaffs-website] / web / core / modules / comment / tests / src / Functional / Hal / CommentHalJsonAnonTest.php
1 <?php
2
3 namespace Drupal\Tests\comment\Functional\Hal;
4
5 use Drupal\Tests\rest\Functional\AnonResourceTestTrait;
6
7 /**
8  * @group hal
9  */
10 class CommentHalJsonAnonTest extends CommentHalJsonTestBase {
11
12   use AnonResourceTestTrait;
13
14   /**
15    * {@inheritdoc}
16    *
17    * Anonymous users cannot edit their own comments.
18    *
19    * @see \Drupal\comment\CommentAccessControlHandler::checkAccess
20    *
21    * Therefore we grant them the 'administer comments' permission for the
22    * purpose of this test. Then they are able to edit their own comments, but
23    * some fields are still not editable, even with that permission.
24    *
25    * @see ::setUpAuthorization
26    */
27   protected static $patchProtectedFieldNames = [
28     'changed' => NULL,
29     'thread' => NULL,
30     'entity_type' => NULL,
31     'field_name' => NULL,
32     'entity_id' => NULL,
33   ];
34
35 }