function TourResourceTestBase::setUpAuthorization

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

Overrides ResourceTestBase::setUpAuthorization

File

core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php, line 30

Class

TourResourceTestBase

Namespace

Drupal\Tests\tour\Functional\Rest

Code

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

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