function VocabularyResourceTestBase::setUpAuthorization

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

Overrides ResourceTestBase::setUpAuthorization

File

core/modules/taxonomy/tests/src/Functional/Rest/VocabularyResourceTestBase.php, line 28

Class

VocabularyResourceTestBase

Namespace

Drupal\Tests\taxonomy\Functional\Rest

Code

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

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