function 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.