protected function InlineBlockTranslationTest::setUp in Layout Builder Symmetric Translations 8
Overrides InlineBlockTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ InlineBlockTranslationTest.php, line 37
Class
- InlineBlockTranslationTest
- Tests that inline blocks works with content translation.
Namespace
Drupal\Tests\layout_builder_st\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
// Adds a new language.
ConfigurableLanguage::createFromLangcode('it')
->save();
// Enable translation for the node type 'bundle_with_section_field'.
\Drupal::service('content_translation.manager')
->setEnabled('node', 'bundle_with_section_field', TRUE);
}