function ConfigurableLanguageResourceTestBase::setUpAuthorization

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

Overrides ResourceTestBase::setUpAuthorization

1 call to ConfigurableLanguageResourceTestBase::setUpAuthorization()
ConfigurableLanguageResourceTestBase::testGetDefaultConfig in core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php
Tests a GET request for a default config entity, which has a _core key.

File

core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php, line 30

Class

ConfigurableLanguageResourceTestBase

Namespace

Drupal\Tests\language\Functional\Rest

Code

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

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