You are here

public function PageVariantTest::providerTestGetContexts in Page Manager 8

Same name and namespace in other branches
  1. 8.4 tests/src/Unit/PageVariantTest.php \Drupal\Tests\page_manager\Unit\PageVariantTest::providerTestGetContexts()

File

tests/src/Unit/PageVariantTest.php, line 77
Contains \Drupal\Tests\page_manager\Unit\PageVariantTest.

Class

PageVariantTest
@coversDefaultClass \Drupal\page_manager\Entity\PageVariant

Namespace

Drupal\Tests\page_manager\Unit

Code

public function providerTestGetContexts() {
  $data = [];
  $data['empty'] = [
    [],
    [],
    [],
  ];
  $data['additive'] = [
    [
      'static' => 'static',
    ],
    [
      'page' => 'page',
    ],
    [
      'page' => 'page',
      'static' => 'static',
    ],
  ];
  $data['conflicting'] = [
    [
      'foo' => 'static',
    ],
    [
      'foo' => 'page',
    ],
    [
      'foo' => 'page',
    ],
  ];
  return $data;
}