function DbLogResourceTest::setUpAuthorization
Same name in other branches
- 9 core/modules/hal/tests/src/Functional/dblog/DbLogResourceTest.php \Drupal\Tests\hal\Functional\dblog\DbLogResourceTest::setUpAuthorization()
- 8.9.x core/modules/dblog/tests/src/Functional/DbLogResourceTest.php \Drupal\Tests\dblog\Functional\DbLogResourceTest::setUpAuthorization()
- 11.x core/modules/dblog/tests/src/Functional/DbLogResourceTest.php \Drupal\Tests\dblog\Functional\DbLogResourceTest::setUpAuthorization()
Overrides ResourceTestBase::setUpAuthorization
1 call to DbLogResourceTest::setUpAuthorization()
- DbLogResourceTest::testWatchdog in core/
modules/ dblog/ tests/ src/ Functional/ DbLogResourceTest.php - Writes a log messages and retrieves it via the REST API.
File
-
core/
modules/ dblog/ tests/ src/ Functional/ DbLogResourceTest.php, line 125
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();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.