You are here

public function LayoutEntityHelperTraitTest::providerTestGetSectionStorageForEntity in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/tests/src/Kernel/LayoutEntityHelperTraitTest.php \Drupal\Tests\layout_builder\Kernel\LayoutEntityHelperTraitTest::providerTestGetSectionStorageForEntity()

Dataprovider for testGetSectionStorageForEntity().

File

core/modules/layout_builder/tests/src/Kernel/LayoutEntityHelperTraitTest.php, line 52

Class

LayoutEntityHelperTraitTest
@coversDefaultClass \Drupal\layout_builder\LayoutEntityHelperTrait

Namespace

Drupal\Tests\layout_builder\Kernel

Code

public function providerTestGetSectionStorageForEntity() {
  $data = [];
  $data['entity_view_display'] = [
    'entity_view_display',
    [
      'targetEntityType' => 'entity_test',
      'bundle' => 'entity_test',
      'mode' => 'default',
      'status' => TRUE,
      'third_party_settings' => [
        'layout_builder' => [
          'enabled' => TRUE,
        ],
      ],
    ],
    [
      'display',
      'view_mode',
    ],
  ];
  $data['fieldable entity'] = [
    'entity_test',
    [],
    [
      'entity',
      'display',
      'view_mode',
    ],
  ];
  return $data;
}