protected function NodeTest::setUpRevisionAuthorization in Drupal 9
Same name and namespace in other branches
- 8 core/modules/jsonapi/tests/src/Functional/NodeTest.php \Drupal\Tests\jsonapi\Functional\NodeTest::setUpRevisionAuthorization()
- 10 core/modules/jsonapi/tests/src/Functional/NodeTest.php \Drupal\Tests\jsonapi\Functional\NodeTest::setUpRevisionAuthorization()
Sets up the necessary authorization for handling revisions.
Parameters
string $method: The HTTP method for which to set up authentication.
Overrides ResourceTestBase::setUpRevisionAuthorization
See also
::testRevisions()
File
- core/
modules/ jsonapi/ tests/ src/ Functional/ NodeTest.php, line 106
Class
- NodeTest
- JSON:API integration test for the "Node" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function setUpRevisionAuthorization($method) {
parent::setUpRevisionAuthorization($method);
$this
->grantPermissionsToTestedRole([
'view all revisions',
]);
}