You are here

public function RendererLegacyTest::providerElements in Drupal 8

Provides a list of elements to test.

File

core/tests/Drupal/KernelTests/Core/Render/RendererLegacyTest.php, line 59

Class

RendererLegacyTest
Deprecation tests cases for the render layer.

Namespace

Drupal\KernelTests\Core\Render

Code

public function providerElements() {
  return [
    [
      [
        '#type' => 'date',
        '#states' => [
          'visible' => [
            ':input[name="toggle_me"]' => [
              'checked' => TRUE,
            ],
          ],
        ],
      ],
    ],
    [
      [
        '#type' => 'item',
        '#states' => [
          'visible' => [
            ':input[name="foo"]' => [
              'value' => 'bar',
            ],
          ],
        ],
      ],
    ],
  ];
}