3 namespace Drupal\Tests\rest\Functional\EntityResource\Comment;
5 use Drupal\Tests\rest\Functional\AnonResourceTestTrait;
10 class CommentJsonAnonTest extends CommentResourceTestBase {
12 use AnonResourceTestTrait;
17 protected static $format = 'json';
22 protected static $mimeType = 'application/json';
27 * Anononymous users cannot edit their own comments.
29 * @see \Drupal\comment\CommentAccessControlHandler::checkAccess
31 * Therefore we grant them the 'administer comments' permission for the
32 * purpose of this test.
34 * @see ::setUpAuthorization
36 protected static $patchProtectedFieldNames = [