function LanguageTestBase::setUp
Same name in this branch
- 10 core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::setUp()
Same name in other branches
- 9 core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::setUp()
- 9 core/modules/language/tests/src/Kernel/LanguageTestBase.php \Drupal\Tests\language\Kernel\LanguageTestBase::setUp()
- 8.9.x core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::setUp()
- 8.9.x core/modules/language/tests/src/Kernel/LanguageTestBase.php \Drupal\Tests\language\Kernel\LanguageTestBase::setUp()
- 11.x core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::setUp()
- 11.x core/modules/language/tests/src/Kernel/LanguageTestBase.php \Drupal\Tests\language\Kernel\LanguageTestBase::setUp()
Overrides KernelTestBase::setUp
3 calls to LanguageTestBase::setUp()
- ConfigurableLanguageManagerTest::setUp in core/
modules/ language/ tests/ src/ Kernel/ ConfigurableLanguageManagerTest.php - EntityUrlLanguageTest::setUp in core/
modules/ language/ tests/ src/ Kernel/ EntityUrlLanguageTest.php - LanguageFallbackTest::setUp in core/
modules/ language/ tests/ src/ Kernel/ LanguageFallbackTest.php
3 methods override LanguageTestBase::setUp()
- ConfigurableLanguageManagerTest::setUp in core/
modules/ language/ tests/ src/ Kernel/ ConfigurableLanguageManagerTest.php - EntityUrlLanguageTest::setUp in core/
modules/ language/ tests/ src/ Kernel/ EntityUrlLanguageTest.php - LanguageFallbackTest::setUp in core/
modules/ language/ tests/ src/ Kernel/ LanguageFallbackTest.php
File
-
core/
modules/ language/ tests/ src/ Kernel/ LanguageTestBase.php, line 35
Class
- LanguageTestBase
- Test for dependency injected language object.
Namespace
Drupal\Tests\language\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installConfig([
'language',
]);
$this->state = $this->container
->get('state');
// Ensure we are building a new Language object for each test.
$this->languageManager = $this->container
->get('language_manager');
$this->languageManager
->reset();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.