You are here

public function LayoutBuilderEntityViewDisplayTest::providerTestIsLayoutBuilderEnabled in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php \Drupal\Tests\layout_builder\Kernel\LayoutBuilderEntityViewDisplayTest::providerTestIsLayoutBuilderEnabled()

Provides test data for ::testIsLayoutBuilderEnabled().

File

core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php, line 66

Class

LayoutBuilderEntityViewDisplayTest
@coversDefaultClass \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay

Namespace

Drupal\Tests\layout_builder\Kernel

Code

public function providerTestIsLayoutBuilderEnabled() {
  $data = [];
  $data['default enabled'] = [
    TRUE,
    'default',
    TRUE,
  ];
  $data['default disabled'] = [
    FALSE,
    'default',
    FALSE,
  ];
  $data['full enabled'] = [
    TRUE,
    'full',
    TRUE,
  ];
  $data['full disabled'] = [
    FALSE,
    'full',
    FALSE,
  ];
  $data['_custom enabled'] = [
    FALSE,
    '_custom',
    TRUE,
  ];
  $data['_custom disabled'] = [
    FALSE,
    '_custom',
    FALSE,
  ];
  return $data;
}