You are here

public function BlockVariantTraitTest::providerTestGetRegionAssignments in Chaos Tool Suite (ctools) 8.3

File

tests/src/Unit/BlockVariantTraitTest.php, line 38

Class

BlockVariantTraitTest
Tests the methods of a block-based variant.

Namespace

Drupal\Tests\ctools\Unit

Code

public function providerTestGetRegionAssignments() {
  return [
    [
      [
        'top' => [],
        'bottom' => [],
      ],
    ],
    [
      [
        'top' => [
          'foo',
        ],
        'bottom' => [],
      ],
      [
        'top' => [
          'foo',
        ],
      ],
    ],
    [
      [
        'top' => [],
        'bottom' => [],
      ],
      [
        'invalid' => [
          'foo',
        ],
      ],
    ],
    [
      [
        'top' => [],
        'bottom' => [
          'foo',
        ],
      ],
      [
        'bottom' => [
          'foo',
        ],
        'invalid' => [
          'bar',
        ],
      ],
    ],
  ];
}