protected function DbLogResourceTest::setUpAuthorization in Drupal 10
Same name and namespace in other branches
- 8 core/modules/dblog/tests/src/Functional/DbLogResourceTest.php \Drupal\Tests\dblog\Functional\DbLogResourceTest::setUpAuthorization()
- 9 core/modules/dblog/tests/src/Functional/DbLogResourceTest.php \Drupal\Tests\dblog\Functional\DbLogResourceTest::setUpAuthorization()
File
- core/
modules/ dblog/ tests/ src/ Functional/ DbLogResourceTest.php, line 123
Class
- DbLogResourceTest
- Tests the watchdog database log resource.
Namespace
Drupal\Tests\dblog\FunctionalCode
protected function setUpAuthorization($method) {
switch ($method) {
case 'GET':
$this
->grantPermissionsToTestedRole([
'restful get dblog',
]);
break;
default:
throw new \UnexpectedValueException();
}
}