You are here

protected function MediaTest::setUpRevisionAuthorization in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/tests/src/Functional/MediaTest.php \Drupal\Tests\jsonapi\Functional\MediaTest::setUpRevisionAuthorization()
  2. 10 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\Functional

Code

protected function setUpRevisionAuthorization($method) {
  parent::setUpRevisionAuthorization($method);
  $this
    ->grantPermissionsToTestedRole([
    'view all media revisions',
  ]);
}