You are here

protected static property CommentHalJsonTestBase::$patchProtectedFieldNames in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/comment/tests/src/Functional/Hal/CommentHalJsonTestBase.php \Drupal\Tests\comment\Functional\Hal\CommentHalJsonTestBase::patchProtectedFieldNames

The HAL+JSON format causes different PATCH-protected fields. For some reason, the 'pid' and 'homepage' fields are NOT PATCH-protected, even though they are for non-HAL+JSON serializations.

@todo fix in https://www.drupal.org/node/2824271

Overrides CommentResourceTestBase::$patchProtectedFieldNames

File

core/modules/comment/tests/src/Functional/Hal/CommentHalJsonTestBase.php, line 38

Class

CommentHalJsonTestBase

Namespace

Drupal\Tests\comment\Functional\Hal

Code

protected static $patchProtectedFieldNames = [
  'status' => "The 'administer comments' permission is required.",
  'created' => "The 'administer comments' permission is required.",
  'changed' => NULL,
  'thread' => NULL,
  'entity_type' => NULL,
  'field_name' => NULL,
  'uid' => "The 'administer comments' permission is required.",
  'entity_id' => NULL,
];