You are here

public function PatternDefinitionTest::definitionGettersProvider in UI Patterns 8

Provider.

Return value

array Data.

File

tests/src/Unit/Definition/PatternDefinitionTest.php, line 121

Class

PatternDefinitionTest
@coversDefaultClass \Drupal\ui_patterns\Definition\PatternDefinition

Namespace

Drupal\Tests\ui_patterns\Unit\Definition

Code

public function definitionGettersProvider() {
  return [
    [
      'getProvider',
      'provider',
      'my_module',
    ],
    [
      'id',
      'id',
      'pattern_id',
    ],
    [
      'getLabel',
      'label',
      'Pattern label',
    ],
    [
      'getDescription',
      'description',
      'Pattern description.',
    ],
    [
      'getUse',
      'use',
      'template.twig',
    ],
    [
      'hasCustomThemeHook',
      'custom theme hook',
      FALSE,
    ],
    [
      'getThemeHook',
      'theme hook',
      'eme hook: custom_my_theme_hook',
    ],
    [
      'getTemplate',
      'template',
      'my-template.html.twig',
    ],
    [
      'getFileName',
      'file name',
      '/path/to/filename.ui_patterns.yml',
    ],
    [
      'getClass',
      'class',
      '\\Drupal\\ui_patterns\\MyClass',
    ],
    [
      'getBasePath',
      'base path',
      '/path/to',
    ],
    [
      'getTags',
      'tags',
      [
        'a',
        'b',
      ],
    ],
  ];
}