function EntityFormDisplayResourceTestBase::setUpAuthorization

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Rest/EntityFormDisplayResourceTestBase.php \Drupal\FunctionalTests\Rest\EntityFormDisplayResourceTestBase::setUpAuthorization()
  2. 10 core/tests/Drupal/FunctionalTests/Rest/EntityFormDisplayResourceTestBase.php \Drupal\FunctionalTests\Rest\EntityFormDisplayResourceTestBase::setUpAuthorization()
  3. 11.x core/tests/Drupal/FunctionalTests/Rest/EntityFormDisplayResourceTestBase.php \Drupal\FunctionalTests\Rest\EntityFormDisplayResourceTestBase::setUpAuthorization()

Overrides ResourceTestBase::setUpAuthorization

File

core/tests/Drupal/FunctionalTests/Rest/EntityFormDisplayResourceTestBase.php, line 29

Class

EntityFormDisplayResourceTestBase

Namespace

Drupal\FunctionalTests\Rest

Code

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

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