function BlockDisplayVariantTest::providerTestSubmitConfigurationForm

Same name in other branches
  1. 8.x-3.x tests/src/Unit/BlockDisplayVariantTest.php \Drupal\Tests\ctools\Unit\BlockDisplayVariantTest::providerTestSubmitConfigurationForm()

Provides data for testSubmitConfigurationForm().

File

tests/src/Unit/BlockDisplayVariantTest.php, line 71

Class

BlockDisplayVariantTest
Tests the block display variant plugin.

Namespace

Drupal\Tests\ctools\Unit

Code

public function providerTestSubmitConfigurationForm() {
    $data = [];
    $data[] = [
        [
            'label' => 'test_label1',
        ],
    ];
    $data[] = [
        [
            'label' => 'test_label2',
            'blocks' => [
                'foo1' => [],
            ],
        ],
    ];
    $data[] = [
        [
            'label' => 'test_label3',
            'blocks' => [
                'foo1' => [],
                'foo2' => [],
            ],
        ],
    ];
    return $data;
}