You are here

protected function LayoutBuilderAtBase::setUpEntities in Layout Builder Asymmetric Translation 8.2

Setup translated entity with layouts.

3 calls to LayoutBuilderAtBase::setUpEntities()
LayoutBuilderAtInstallTest::setUp in tests/src/Functional/LayoutBuilderAtInstallTest.php
LayoutBuilderAtReplicateTest::setUp in tests/src/Functional/LayoutBuilderAtReplicateTest.php
LayoutBuilderAtTranslationTest::setUp in tests/src/Functional/LayoutBuilderAtTranslationTest.php

File

tests/src/Functional/LayoutBuilderAtBase.php, line 126

Class

LayoutBuilderAtBase
Base class for Layout Builder Asymmetric Translations.

Namespace

Drupal\Tests\layout_builder_at\Functional

Code

protected function setUpEntities() {
  $this
    ->drupalLogin($this->administrator);
  $field_ui_prefix = 'entity_test_mul/structure/entity_test_mul';

  // Allow overrides for the layout.
  $this
    ->drupalPostForm("{$field_ui_prefix}/display/default", [
    'layout[enabled]' => TRUE,
  ], 'Save');
  $this
    ->drupalPostForm("{$field_ui_prefix}/display/default", [
    'layout[allow_custom]' => TRUE,
  ], 'Save');

  // @todo The Layout Builder UI relies on local tasks; fix in
  //   https://www.drupal.org/project/drupal/issues/2917777.
  $this
    ->drupalPlaceBlock('local_tasks_block');
}