function ConfigurableLanguageTest::setUpAuthorization

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

Overrides ResourceTestBase::setUpAuthorization

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

File

core/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php, line 51

Class

ConfigurableLanguageTest
JSON:API integration test for the "ConfigurableLanguage" config entity type.

Namespace

Drupal\Tests\jsonapi\Functional

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.