3 namespace Drupal\Tests\comment\Functional\Hal;
5 use Drupal\Tests\rest\Functional\AnonResourceTestTrait;
10 class CommentHalJsonAnonTest extends CommentHalJsonTestBase {
12 use AnonResourceTestTrait;
17 * Anonymous users cannot edit their own comments.
19 * @see \Drupal\comment\CommentAccessControlHandler::checkAccess
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.
25 * @see ::setUpAuthorization
27 protected static $patchProtectedFieldNames = [
30 'entity_type' => NULL,