function RendererLegacyTest::providerAttributes

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',
                ],
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.