protected function ResourceTestBase::setUpRevisionAuthorization in Drupal 10
Same name and namespace in other branches
- 8 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::setUpRevisionAuthorization()
- 9 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::setUpRevisionAuthorization()
Sets up the necessary authorization for handling revisions.
Parameters
string $method: The HTTP method for which to set up authentication.
See also
::testRevisions()
File
- core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php, line 636
Class
- ResourceTestBase
- Subclass this for every JSON:API resource type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function setUpRevisionAuthorization($method) {
assert($method === 'GET', 'Only read operations on revisions are supported.');
$this
->setUpAuthorization($method);
}