function NodeJsonBasicAuthTest::setUpAuthorization

Same name in other branches
  1. 10 core/modules/node/tests/src/Functional/Rest/NodeJsonBasicAuthTest.php \Drupal\Tests\node\Functional\Rest\NodeJsonBasicAuthTest::setUpAuthorization()

Overrides NodeResourceTestBase::setUpAuthorization

File

core/modules/node/tests/src/Functional/Rest/NodeJsonBasicAuthTest.php, line 44

Class

NodeJsonBasicAuthTest
@group rest

Namespace

Drupal\Tests\node\Functional\Rest

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.