function WorkflowResourceTestBase::setUpAuthorization

Same name in other branches
  1. 9 core/modules/workflows/tests/src/Functional/Rest/WorkflowResourceTestBase.php \Drupal\Tests\workflows\Functional\Rest\WorkflowResourceTestBase::setUpAuthorization()
  2. 8.9.x core/modules/workflows/tests/src/Functional/Rest/WorkflowResourceTestBase.php \Drupal\Tests\workflows\Functional\Rest\WorkflowResourceTestBase::setUpAuthorization()
  3. 11.x core/modules/workflows/tests/src/Functional/Rest/WorkflowResourceTestBase.php \Drupal\Tests\workflows\Functional\Rest\WorkflowResourceTestBase::setUpAuthorization()

Overrides ResourceTestBase::setUpAuthorization

File

core/modules/workflows/tests/src/Functional/Rest/WorkflowResourceTestBase.php, line 43

Class

WorkflowResourceTestBase
ResourceTestBase for Workflow entity.

Namespace

Drupal\Tests\workflows\Functional\Rest

Code

protected function setUpAuthorization($method) {
    $this->grantPermissionsToTestedRole([
        'administer workflows',
    ]);
}

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