function BlockContentTranslationTest::setUp
Sets the test up.
Overrides BlockContentTestBase::setUp
File
-
core/
modules/ block_content/ tests/ src/ Functional/ BlockContentTranslationTest.php, line 34
Class
- BlockContentTranslationTest
- Tests block content translations.
Namespace
Drupal\Tests\block_content\FunctionalCode
protected function setUp() : void {
parent::setUp();
static::enableBundleTranslation('block_content', 'basic');
static::createLanguageFromLangcode('es');
// Rebuild the container so LanguageServiceProvider adds the path
// processors.
$this->rebuildContainer();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.