function LayoutBuilderIsActiveCacheContextTest::providerTestGetContext

Same name in other branches
  1. 10 core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php \Drupal\Tests\layout_builder\Unit\LayoutBuilderIsActiveCacheContextTest::providerTestGetContext()
  2. 11.x core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php \Drupal\Tests\layout_builder\Unit\LayoutBuilderIsActiveCacheContextTest::providerTestGetContext()

Provides test data for ::testGetContext().

File

core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php, line 97

Class

LayoutBuilderIsActiveCacheContextTest
@coversDefaultClass \Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext

Namespace

Drupal\Tests\layout_builder\Unit

Code

public function providerTestGetContext() {
    $data = [];
    $data['overridden'] = [
        TRUE,
        '1',
    ];
    $data['not overridden'] = [
        FALSE,
        '0',
    ];
    return $data;
}

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