protected function BlockContentResourceTestBase::getExpectedUnauthorizedAccessMessage in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php \Drupal\Tests\block_content\Functional\Rest\BlockContentResourceTestBase::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/ block_content/ tests/ src/ Functional/ Rest/ BlockContentResourceTestBase.php, line 179
Class
- BlockContentResourceTestBase
- ResourceTestBase for BlockContent entity.
Namespace
Drupal\Tests\block_content\Functional\RestCode
protected function getExpectedUnauthorizedAccessMessage($method) {
return parent::getExpectedUnauthorizedAccessMessage($method);
}