protected static property CommentJsonAnonTest::$patchProtectedFieldNames in Drupal 9
Same name and namespace in other branches
- 8 core/modules/comment/tests/src/Functional/Rest/CommentJsonAnonTest.php \Drupal\Tests\comment\Functional\Rest\CommentJsonAnonTest::patchProtectedFieldNames
Anonymous users cannot edit their own comments.
Therefore we grant them the 'administer comments' permission for the purpose of this test.
Overrides CommentResourceTestBase::$patchProtectedFieldNames
See also
\Drupal\comment\CommentAccessControlHandler::checkAccess
::setUpAuthorization
File
- core/
modules/ comment/ tests/ src/ Functional/ Rest/ CommentJsonAnonTest.php, line 41
Class
- CommentJsonAnonTest
- @group rest
Namespace
Drupal\Tests\comment\Functional\RestCode
protected static $patchProtectedFieldNames = [
'pid' => NULL,
'entity_id' => NULL,
'changed' => NULL,
'thread' => NULL,
'entity_type' => NULL,
'field_name' => NULL,
];