You are here

protected function ContentLanguageSettingsResourceTestBase::setUpAuthorization in Drupal 10

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

File

core/modules/language/tests/src/Functional/Rest/ContentLanguageSettingsResourceTestBase.php, line 29

Class

ContentLanguageSettingsResourceTestBase

Namespace

Drupal\Tests\language\Functional\Rest

Code

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