You are here

protected function LanguageConditionTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/src/Tests/Condition/LanguageConditionTest.php \Drupal\language\Tests\Condition\LanguageConditionTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides KernelTestBase::setUp

File

core/modules/language/src/Tests/Condition/LanguageConditionTest.php, line 42
Contains \Drupal\language\Tests\Condition\LanguageConditionTest.

Class

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

Namespace

Drupal\language\Tests\Condition

Code

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

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