You are here

protected static property CommentTest::$patchProtectedFieldNames in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/tests/src/Functional/CommentTest.php \Drupal\Tests\jsonapi\Functional\CommentTest::patchProtectedFieldNames

The fields that are protected against modification during PATCH requests.

Type: string[]

Overrides ResourceTestBase::$patchProtectedFieldNames

File

core/modules/jsonapi/tests/src/Functional/CommentTest.php, line 52

Class

CommentTest
JSON:API integration test for the "Comment" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected static $patchProtectedFieldNames = [
  'status' => "The 'administer comments' permission is required.",
  '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,
  // @todo Uncomment this after https://www.drupal.org/project/drupal/issues/1847608 lands. Until then, it's impossible to test this.
  // 'pid' => NULL,
  'uid' => "The 'administer comments' permission is required.",
  'entity_id' => NULL,
];