You are here

protected static property CommentTest::$patchProtectedFieldNames in JSON:API 8.2

Same name and namespace in other branches
  1. 8 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

tests/src/Functional/CommentTest.php, line 47

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,
];