function LayoutEntityHelperTraitTest::providerTestOriginalEntityUsesDefaultStorage

Same name 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()
  3. 11.x 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,
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.