protected static property CommentXmlAnonTest::$patchProtectedFieldNames in Drupal 8
Same name and namespace in other branches
- 9 core/modules/comment/tests/src/Functional/Rest/CommentXmlAnonTest.php \Drupal\Tests\comment\Functional\Rest\CommentXmlAnonTest::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/ CommentXmlAnonTest.php, line 43
Class
- CommentXmlAnonTest
- @group rest
Namespace
Drupal\Tests\comment\Functional\RestCode
protected static $patchProtectedFieldNames = [
'pid',
'entity_id',
'changed',
'thread',
'entity_type',
'field_name',
];