You are here

protected function WorkflowResourceTestBase::setUpAuthorization in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/workflows/tests/src/Functional/Rest/WorkflowResourceTestBase.php \Drupal\Tests\workflows\Functional\Rest\WorkflowResourceTestBase::setUpAuthorization()
  2. 9 core/modules/workflows/tests/src/Functional/Rest/WorkflowResourceTestBase.php \Drupal\Tests\workflows\Functional\Rest\WorkflowResourceTestBase::setUpAuthorization()

File

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

Class

WorkflowResourceTestBase
ResourceTestBase for Workflow entity.

Namespace

Drupal\Tests\workflows\Functional\Rest

Code

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