Issue #3138786 by sja112, mohrerao: Fix "Protected" relevant typos in core

(cherry picked from commit 8acabfb7e7)
merge-requests/64/head
xjm 2020-05-28 19:53:53 -05:00
parent c71eb68d39
commit 39c69cbe54
1 changed files with 1 additions and 1 deletions

View File

@ -1413,7 +1413,7 @@ abstract class EntityResourceTestBase extends ResourceTestBase {
};
$keys_are_field_names = Inspector::assertAllStrings(array_keys(static::$patchProtectedFieldNames));
$values_are_expected_access_denied_reasons = Inspector::assertAll($is_null_or_string, static::$patchProtectedFieldNames);
$this->assertTrue($keys_are_field_names && $values_are_expected_access_denied_reasons, 'In Drupal 8.6, the structure of $patchProtectectedFieldNames changed. It used to be an array with field names as values. Now those values are the keys, and their values should be either NULL or a string: a string containing the reason for why the field cannot be PATCHed, or NULL otherwise.');
$this->assertTrue($keys_are_field_names && $values_are_expected_access_denied_reasons, 'In Drupal 8.6, the structure of $patchProtectedFieldNames changed. It used to be an array with field names as values. Now those values are the keys, and their values should be either NULL or a string: a string containing the reason for why the field cannot be PATCHed, or NULL otherwise.');
}
/**