protected function ParagraphsLibraryItemTranslationTest::setUp

File

paragraphs/modules/paragraphs_library/tests/src/Functional/ParagraphsLibraryItemTranslationTest.php, line 50

Class

ParagraphsLibraryItemTranslationTest
Tests the multilingual functionality of the Paragraphs Library.

Namespace

Drupal\Tests\paragraphs_library\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->addParagraphedContentType('paragraphed_test');
  $this
    ->placeDefaultBlocks();

  // Add a second language (German) to the site.
  ConfigurableLanguage::createFromLangcode('de')
    ->save();
}