You are here

protected property LayoutFieldTranslateUpdateConfigAndStorage::$layoutBuilderTestCases in Drupal 8

Layout builder test cases.

Keys are bundle names. Values are test cases including keys:

  • has_translation
  • has_layout
  • vid
  • nid

Type: array

Overrides MakeLayoutUntranslatableUpdatePathTestBase::$layoutBuilderTestCases

File

core/modules/layout_builder/tests/src/Functional/Update/Translatability/LayoutFieldTranslateUpdateConfigAndStorage.php, line 16

Class

LayoutFieldTranslateUpdateConfigAndStorage
A test case that updates both bundles' fields.

Namespace

Drupal\Tests\layout_builder\Functional\Update\Translatability

Code

protected $layoutBuilderTestCases = [
  'article' => [
    'has_translation' => TRUE,
    'has_layout' => FALSE,
    'nid' => 1,
    'vid' => 2,
  ],
  'page' => [
    'has_translation' => FALSE,
    'has_layout' => TRUE,
    'nid' => 4,
    'vid' => 5,
  ],
];