You are here

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

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

Class

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

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected static $patchProtectedFieldNames = [
  'revision_timestamp' => NULL,
  // @todo This is a relationship, and cannot be tested in the same way. Fix in https://www.drupal.org/project/jsonapi/issues/2939810.
  // 'revision_uid' => 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'.",
];