You are here

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

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

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.",
  // @todo These are relationships, and cannot be tested in the same way. Fix in https://www.drupal.org/project/jsonapi/issues/2939810.
  // 'pid' => NULL,
  // 'entity_id' => NULL,
  // 'uid' => 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,
];