You are here

protected function EditorResourceTestBase::getExpectedUnauthorizedAccessMessage in Drupal 9

Same name and namespace in other branches
  1. 8 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\Rest

Code

protected function getExpectedUnauthorizedAccessMessage($method) {
  return "The 'administer filters' permission is required.";
}