You are here

protected function NodeTest::setUpRevisionAuthorization in Drupal 8

Same name and namespace in other branches
  1. 9 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\Functional

Code

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