You are here

protected function NodeTest::setUpRevisionAuthorization in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/tests/src/Functional/NodeTest.php \Drupal\Tests\jsonapi\Functional\NodeTest::setUpRevisionAuthorization()
  2. 9 core/modules/jsonapi/tests/src/Functional/NodeTest.php \Drupal\Tests\jsonapi\Functional\NodeTest::setUpRevisionAuthorization()

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',
  ]);
}