function LanguageConditionTest::setUp
Same name in other branches
- 9 core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php \Drupal\Tests\language\Kernel\Condition\LanguageConditionTest::setUp()
- 8.9.x core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php \Drupal\Tests\language\Kernel\Condition\LanguageConditionTest::setUp()
- 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\ConditionCode
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.