You are here

public function LayoutEntityHelperTraitTest::providerTestOriginalEntityUsesDefaultStorage 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::providerTestOriginalEntityUsesDefaultStorage()
  2. 10 core/modules/layout_builder/tests/src/Kernel/LayoutEntityHelperTraitTest.php \Drupal\Tests\layout_builder\Kernel\LayoutEntityHelperTraitTest::providerTestOriginalEntityUsesDefaultStorage()

Dataprovider for testOriginalEntityUsesDefaultStorage().

File

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

Class

LayoutEntityHelperTraitTest
@coversDefaultClass \Drupal\layout_builder\LayoutEntityHelperTrait

Namespace

Drupal\Tests\layout_builder\Kernel

Code

public function providerTestOriginalEntityUsesDefaultStorage() {
  return [
    'original uses default' => [
      [
        'updated' => 'override',
        'original' => 'default',
      ],
      FALSE,
      TRUE,
      TRUE,
    ],
    'original uses override' => [
      [
        'updated' => 'override',
        'original' => 'override',
      ],
      FALSE,
      TRUE,
      FALSE,
    ],
    'no original use override' => [
      [
        'updated' => 'override',
      ],
      FALSE,
      FALSE,
      FALSE,
    ],
    'no original uses default' => [
      [
        'updated' => 'default',
      ],
      FALSE,
      FALSE,
      FALSE,
    ],
    'is new use override' => [
      [
        'updated' => 'override',
      ],
      TRUE,
      FALSE,
      FALSE,
    ],
    'is new use default' => [
      [
        'updated' => 'default',
      ],
      TRUE,
      FALSE,
      FALSE,
    ],
  ];
}