function EntityFormModeResourceTestBase::setUpAuthorization

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

Overrides ResourceTestBase::setUpAuthorization

File

core/tests/Drupal/FunctionalTests/Rest/EntityFormModeResourceTestBase.php, line 30

Class

EntityFormModeResourceTestBase

Namespace

Drupal\FunctionalTests\Rest

Code

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

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