You are here

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

Same name and namespace in other branches
  1. 8 tests/src/Functional/NodeTest.php \Drupal\Tests\jsonapi\Functional\NodeTest::patchProtectedFieldNames

The fields that are protected against modification during PATCH requests.

Type: string[]

Overrides ResourceTestBase::$patchProtectedFieldNames

File

tests/src/Functional/NodeTest.php, line 60

Class

NodeTest
JSON:API integration test for the "Node" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected static $patchProtectedFieldNames = [
  'revision_timestamp' => NULL,
  'created' => "The 'administer nodes' permission is required.",
  'changed' => NULL,
  'promote' => "The 'administer nodes' permission is required.",
  'sticky' => "The 'administer nodes' permission is required.",
  'path' => "The following permissions are required: 'create url aliases' OR 'administer url aliases'.",
  'revision_uid' => NULL,
];