protected function MediaTest::setUpRevisionAuthorization in Drupal 8
Same name and namespace in other branches
- 9 core/modules/jsonapi/tests/src/Functional/MediaTest.php \Drupal\Tests\jsonapi\Functional\MediaTest::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/ MediaTest.php, line 89
Class
- MediaTest
- JSON:API integration test for the "Media" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function setUpRevisionAuthorization($method) {
parent::setUpRevisionAuthorization($method);
$this
->grantPermissionsToTestedRole([
'view all media revisions',
]);
}