You are here

protected static property NodeHalJsonAnonTest::$patchProtectedFieldNames in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/node/tests/src/Functional/Hal/NodeHalJsonAnonTest.php \Drupal\Tests\node\Functional\Hal\NodeHalJsonAnonTest::patchProtectedFieldNames

The fields that are protected against modification during PATCH requests.

Keys are field names, values are expected access denied reasons.

Type: string[]

Overrides NodeResourceTestBase::$patchProtectedFieldNames

File

core/modules/node/tests/src/Functional/Hal/NodeHalJsonAnonTest.php, line 41

Class

NodeHalJsonAnonTest
@group hal

Namespace

Drupal\Tests\node\Functional\Hal

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