function LanguageConditionTest::setUp

Same name in other branches
  1. 8.9.x core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php \Drupal\Tests\language\Kernel\Condition\LanguageConditionTest::setUp()
  2. 10 core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php \Drupal\Tests\language\Kernel\Condition\LanguageConditionTest::setUp()
  3. 11.x core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php \Drupal\Tests\language\Kernel\Condition\LanguageConditionTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php, line 39

Class

LanguageConditionTest
Tests the language condition plugin.

Namespace

Drupal\Tests\language\Kernel\Condition

Code

protected function setUp() : void {
    parent::setUp();
    $this->installConfig([
        'language',
    ]);
    // Setup Italian.
    ConfigurableLanguage::createFromLangcode('it')->save();
    $this->manager = $this->container
        ->get('plugin.manager.condition');
}

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