3 namespace Drupal\Tests\hal\Functional\EntityResource\Comment;
5 use Drupal\Tests\rest\Functional\AnonResourceTestTrait;
10 class CommentHalJsonAnonTest extends CommentHalJsonTestBase {
12 use AnonResourceTestTrait;
17 * Anononymous 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 = [