function RevisionVersionHistoryTranslatableTest::setUp
Same name in other branches
- 11.x core/tests/Drupal/FunctionalTests/Entity/RevisionVersionHistoryTranslatableTest.php \Drupal\FunctionalTests\Entity\RevisionVersionHistoryTranslatableTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
tests/ Drupal/ FunctionalTests/ Entity/ RevisionVersionHistoryTranslatableTest.php, line 37
Class
- RevisionVersionHistoryTranslatableTest
- Tests version history page with translations.
Namespace
Drupal\FunctionalTests\EntityCode
protected function setUp() : void {
parent::setUp();
ConfigurableLanguage::createFromLangcode('es')->save();
// Rebuild the container so that the new languages are picked up by services
// that hold a list of languages.
$this->rebuildContainer();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.