reverted: --- b/core/modules/rest/tests/src/Functional/EntityResource/Media/MediaResourceTestBase.php +++ a/core/modules/rest/tests/src/Functional/EntityResource/Media/MediaResourceTestBase.php @@ -251,10 +251,10 @@ return "The 'view media' permission is required and the media item must be published."; case 'PATCH': + return 'You are not authorized to update this media entity of bundle camelids.'; - return 'You are not authorized to update this media item of bundle camelids.'; case 'DELETE': + return 'You are not authorized to delete this media entity of bundle camelids.'; - return 'You are not authorized to delete this media item of bundle camelids.'; default: return parent::getExpectedUnauthorizedAccessMessage($method);