You are here

protected function LanguageConditionTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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 37

Class

LanguageConditionTest
Tests that the language condition, provided by the language module, is working properly.

Namespace

Drupal\Tests\language\Kernel\Condition

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'language',
  ]);

  // Setup Italian.
  ConfigurableLanguage::createFromLangcode('it')
    ->save();
  $this->manager = $this->container
    ->get('plugin.manager.condition');
}