protected function LanguageTestBase::setUp in Zircon Profile 8
Same name in this branch
- 8 core/modules/language/src/Tests/LanguageTestBase.php \Drupal\language\Tests\LanguageTestBase::setUp()
- 8 core/modules/language/src/Tests/Views/LanguageTestBase.php \Drupal\language\Tests\Views\LanguageTestBase::setUp()
Same name and namespace in other branches
- 8.0 core/modules/language/src/Tests/LanguageTestBase.php \Drupal\language\Tests\LanguageTestBase::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
2 calls to LanguageTestBase::setUp()
- EntityUrlLanguageTest::setUp in core/
modules/ language/ src/ Tests/ EntityUrlLanguageTest.php - Performs setup tasks before each individual test method is run.
- LanguageFallbackTest::setUp in core/
modules/ language/ src/ Tests/ LanguageFallbackTest.php - Performs setup tasks before each individual test method is run.
2 methods override LanguageTestBase::setUp()
- EntityUrlLanguageTest::setUp in core/
modules/ language/ src/ Tests/ EntityUrlLanguageTest.php - Performs setup tasks before each individual test method is run.
- LanguageFallbackTest::setUp in core/
modules/ language/ src/ Tests/ LanguageFallbackTest.php - Performs setup tasks before each individual test method is run.
File
- core/
modules/ language/ src/ Tests/ LanguageTestBase.php, line 35 - Contains \Drupal\language\Tests\LanguageTestBase.
Class
- LanguageTestBase
- Test for dependency injected language object.
Namespace
Drupal\language\TestsCode
protected function setUp() {
parent::setUp();
$this
->installConfig(array(
'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();
}