function ConfigurableLanguageManagerTest::setUp

Same name in this branch
  1. 11.x core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php \Drupal\Tests\language\Functional\ConfigurableLanguageManagerTest::setUp()
Same name in other branches
  1. 9 core/modules/language/tests/src/Kernel/ConfigurableLanguageManagerTest.php \Drupal\Tests\language\Kernel\ConfigurableLanguageManagerTest::setUp()
  2. 9 core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php \Drupal\Tests\language\Functional\ConfigurableLanguageManagerTest::setUp()
  3. 8.9.x core/modules/language/tests/src/Kernel/ConfigurableLanguageManagerTest.php \Drupal\Tests\language\Kernel\ConfigurableLanguageManagerTest::setUp()
  4. 8.9.x core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php \Drupal\Tests\language\Functional\ConfigurableLanguageManagerTest::setUp()
  5. 10 core/modules/language/tests/src/Kernel/ConfigurableLanguageManagerTest.php \Drupal\Tests\language\Kernel\ConfigurableLanguageManagerTest::setUp()
  6. 10 core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php \Drupal\Tests\language\Functional\ConfigurableLanguageManagerTest::setUp()

Overrides LanguageTestBase::setUp

File

core/modules/language/tests/src/Kernel/ConfigurableLanguageManagerTest.php, line 40

Class

ConfigurableLanguageManagerTest
Tests the ConfigurableLanguage entity.

Namespace

Drupal\Tests\language\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('user');
    $this->languageNegotiator = $this->container
        ->get('language_negotiator');
    $this->languageManager = $this->container
        ->get('language_manager');
}

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