You are here

protected static property NodeTest::$patchProtectedFieldNames in Drupal 9

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

core/modules/jsonapi/tests/src/Functional/NodeTest.php, line 66

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