function RevisionVersionHistoryTranslatableTest::setUp

Same name and namespace in other branches
  1. 10 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\Entity

Code

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.