function BlockVariantTraitTest::providerTestGetRegionAssignments

Same name and namespace in other branches
  1. 4.0.x tests/src/Unit/BlockVariantTraitTest.php \Drupal\Tests\ctools\Unit\BlockVariantTraitTest::providerTestGetRegionAssignments()

File

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

Class

BlockVariantTraitTest
Tests the methods of a block-based variant.

Namespace

Drupal\Tests\ctools\Unit

Code

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