protected function LanguageTestBase::setUp in Drupal 10
Same name in this branch
- 10 core/modules/language/tests/src/Kernel/LanguageTestBase.php \Drupal\Tests\language\Kernel\LanguageTestBase::setUp()
- 10 core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::setUp()
Same name and namespace in other branches
- 8 core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::setUp()
- 9 core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::setUp()
File
- core/
modules/ language/ tests/ src/ Kernel/ Views/ LanguageTestBase.php, line 20
Class
- LanguageTestBase
- Defines the base class for all Language handler tests.
Namespace
Drupal\Tests\language\Kernel\ViewsCode
protected function setUp($import_test_views = TRUE) : void {
parent::setUp();
$this
->installConfig([
'language',
]);
// Create another language beside English.
ConfigurableLanguage::create([
'id' => 'xx-lolspeak',
'label' => 'Lolspeak',
])
->save();
}