function BlockVariantTraitTest::providerTestGetRegionAssignments
Same name in other branches
- 8.x-3.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\UnitCode
public function providerTestGetRegionAssignments() {
return [
[
[
'top' => [],
'bottom' => [],
],
],
[
[
'top' => [
'foo',
],
'bottom' => [],
],
[
'top' => [
'foo',
],
],
],
[
[
'top' => [],
'bottom' => [],
],
[
'invalid' => [
'foo',
],
],
],
[
[
'top' => [],
'bottom' => [
'foo',
],
],
[
'bottom' => [
'foo',
],
'invalid' => [
'bar',
],
],
],
];
}