protected function RestRegisterUserTest::getExpectedUnauthorizedAccessMessage in Drupal 9
Same name and namespace in other branches
- 8 core/modules/user/tests/src/Functional/RestRegisterUserTest.php \Drupal\Tests\user\Functional\RestRegisterUserTest::getExpectedUnauthorizedAccessMessage()
Return the expected error message.
Parameters
string $method: The HTTP method (GET, POST, PATCH, DELETE).
Return value
string The error string.
Overrides ResourceTestBase::getExpectedUnauthorizedAccessMessage
File
- core/
modules/ user/ tests/ src/ Functional/ RestRegisterUserTest.php, line 264
Class
- RestRegisterUserTest
- Tests user registration via REST resource.
Namespace
Drupal\Tests\user\FunctionalCode
protected function getExpectedUnauthorizedAccessMessage($method) {
}