You are here

protected static property UserResourceTestBase::$patchProtectedFieldNames in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/tests/src/Functional/Rest/UserResourceTestBase.php \Drupal\Tests\user\Functional\Rest\UserResourceTestBase::patchProtectedFieldNames

The fields that are protected against modification during PATCH requests.

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

Type: string[]

Overrides EntityResourceTestBase::$patchProtectedFieldNames

File

core/modules/user/tests/src/Functional/Rest/UserResourceTestBase.php, line 25

Class

UserResourceTestBase

Namespace

Drupal\Tests\user\Functional\Rest

Code

protected static $patchProtectedFieldNames = [
  'changed' => NULL,
];