You are here

protected function ParagraphsLibraryItemTranslationTest::setUp in Paragraphs 8

Overrides BrowserTestBase::setUp

File

modules/paragraphs_library/tests/src/Functional/ParagraphsLibraryItemTranslationTest.php, line 47

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
    ->drupalPlaceBlock('system_breadcrumb_block');
  $this
    ->drupalPlaceBlock('local_tasks_block');
  $this
    ->drupalPlaceBlock('local_actions_block');
  $this
    ->drupalPlaceBlock('page_title_block');

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