function ComponentValidatorTest::dataProviderValidateDefinitionValid

Same name in this branch
  1. 10 core/modules/sdc/tests/src/Unit/ComponentValidatorTest.php \Drupal\Tests\sdc\Unit\ComponentValidatorTest::dataProviderValidateDefinitionValid()
Same name in other branches
  1. 11.x core/modules/sdc/tests/src/Unit/ComponentValidatorTest.php \Drupal\Tests\sdc\Unit\ComponentValidatorTest::dataProviderValidateDefinitionValid()
  2. 11.x core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php \Drupal\Tests\Core\Theme\Component\ComponentValidatorTest::dataProviderValidateDefinitionValid()

Data provider with valid component definitions.

Return value

array The data.

File

core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php, line 44

Class

ComponentValidatorTest
Unit tests for the component validation.

Namespace

Drupal\Tests\Core\Theme\Component

Code

public static function dataProviderValidateDefinitionValid() : array {
    return [
        array_map([
            static::class,
            'loadComponentDefinitionFromFs',
        ], [
            'my-banner',
            'my-button',
            'my-cta',
        ]),
    ];
}

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