protected function EditorResourceTestBase::getExpectedUnauthorizedAccessMessage in Drupal 8
Same name and namespace in other branches
- 9 core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php \Drupal\Tests\editor\Functional\Rest\EditorResourceTestBase::getExpectedUnauthorizedAccessMessage()
- 10 core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php \Drupal\Tests\editor\Functional\Rest\EditorResourceTestBase::getExpectedUnauthorizedAccessMessage()
Return the expected error message.
Parameters
string $method: The HTTP method (GET, POST, PATCH, DELETE).
Return value
string The error string.
Overrides EntityResourceTestBase::getExpectedUnauthorizedAccessMessage
File
- core/
modules/ editor/ tests/ src/ Functional/ Rest/ EditorResourceTestBase.php, line 176
Class
- EditorResourceTestBase
- ResourceTestBase for Editor entity.
Namespace
Drupal\Tests\editor\Functional\RestCode
protected function getExpectedUnauthorizedAccessMessage($method) {
if ($this
->config('rest.settings')
->get('bc_entity_resource_permissions')) {
return parent::getExpectedUnauthorizedAccessMessage($method);
}
return "The 'administer filters' permission is required.";
}