You are here

protected static property CommentResourceTestBase::$patchProtectedFieldNames in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php \Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase::patchProtectedFieldNames
  2. 10 core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php \Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase::patchProtectedFieldNames

The fields that are protected against modification during PATCH requests.

Keys are field names, values are expected access denied reasons.

Type: string[]

Overrides EntityResourceTestBase::$patchProtectedFieldNames

File

core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php, line 32

Class

CommentResourceTestBase

Namespace

Drupal\Tests\comment\Functional\Rest

Code

protected static $patchProtectedFieldNames = [
  'status' => "The 'administer comments' permission is required.",
  'uid' => "The 'administer comments' permission is required.",
  'pid' => NULL,
  'entity_id' => NULL,
  'name' => "The 'administer comments' permission is required.",
  'homepage' => "The 'administer comments' permission is required.",
  'created' => "The 'administer comments' permission is required.",
  'changed' => NULL,
  'thread' => NULL,
  'entity_type' => NULL,
  'field_name' => NULL,
];