CommentJsonAnonTest::$patchProtectedFieldNames
Same name in other branches
- 9 core/modules/comment/tests/src/Functional/Rest/CommentJsonAnonTest.php \Drupal\Tests\comment\Functional\Rest\CommentJsonAnonTest::patchProtectedFieldNames
- 8.9.x core/modules/comment/tests/src/Functional/Rest/CommentJsonAnonTest.php \Drupal\Tests\comment\Functional\Rest\CommentJsonAnonTest::patchProtectedFieldNames
- 11.x 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.
Type: patchProtectedFieldNames
Overrides CommentResourceTestBase::$patchProtectedFieldNames
See also
\Drupal\comment\CommentAccessControlHandler::checkAccess
::setUpAuthorization
File
-
core/
modules/ comment/ tests/ src/ Functional/ Rest/ CommentJsonAnonTest.php, line 44
Class
- CommentJsonAnonTest
- @group rest @group #slow
Namespace
Drupal\Tests\comment\Functional\RestCode
protected static $patchProtectedFieldNames = [
'pid' => NULL,
'entity_id' => NULL,
'changed' => NULL,
'thread' => NULL,
'entity_type' => NULL,
'field_name' => NULL,
];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.