function FieldStorageConfigResourceTestBase::setUpAuthorization

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

Overrides ResourceTestBase::setUpAuthorization

File

core/modules/field/tests/src/Functional/Rest/FieldStorageConfigResourceTestBase.php, line 28

Class

FieldStorageConfigResourceTestBase

Namespace

Drupal\Tests\field\Functional\Rest

Code

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

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