protected function DbLogResourceTest::getExpectedUnauthorizedAccessMessage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/dblog/tests/src/Functional/DbLogResourceTest.php \Drupal\Tests\dblog\Functional\DbLogResourceTest::getExpectedUnauthorizedAccessMessage()
- 9 core/modules/dblog/tests/src/Functional/DbLogResourceTest.php \Drupal\Tests\dblog\Functional\DbLogResourceTest::getExpectedUnauthorizedAccessMessage()
File
- core/
modules/ dblog/ tests/ src/ Functional/ DbLogResourceTest.php, line 142
Class
- DbLogResourceTest
- Tests the watchdog database log resource.
Namespace
Drupal\Tests\dblog\FunctionalCode
protected function getExpectedUnauthorizedAccessMessage($method) {
switch ($method) {
case 'GET':
return "The 'restful get dblog' permission is required.";
default:
return parent::getExpectedUnauthorizedAccessMessage($method);
}
}