protected static property NodeHalJsonAnonTest::$patchProtectedFieldNames in Drupal 9
Same name and namespace in other branches
- 8 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\HalCode
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,
];