You are here

public function RendererLegacyTest::providerAttributes in Drupal 8

Provides a list of attributes to test.

File

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

Class

RendererLegacyTest
Deprecation tests cases for the render layer.

Namespace

Drupal\KernelTests\Core\Render

Code

public function providerAttributes() {
  return [
    [
      ' foo=""',
      [
        'foo' => '',
      ],
    ],
    [
      ' foo=""',
      [
        'foo' => [],
      ],
    ],
    [
      ' foo="bar"',
      [
        'foo' => 'bar',
      ],
    ],
    [
      ' foo="bar"',
      [
        'foo' => [
          'bar',
        ],
      ],
    ],
    [
      ' foo="bar baz"',
      [
        'foo' => [
          'bar',
          'baz',
        ],
      ],
    ],
  ];
}