You are here

protected function TourResourceTestBase::setUpAuthorization in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php \Drupal\Tests\tour\Functional\Rest\TourResourceTestBase::setUpAuthorization()
  2. 9 core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php \Drupal\Tests\tour\Functional\Rest\TourResourceTestBase::setUpAuthorization()

File

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

Class

TourResourceTestBase

Namespace

Drupal\Tests\tour\Functional\Rest

Code

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