function ThemesNotUsingClassyTemplatesTest::providerTestThemesTemplatesNotClassy
Data provider for testThemesTemplatesNotClassy().
Return value
array Array of test cases using these keys: -'theme-name': The machine name of the theme being tested. -'to-skip': Templates that will skipped by the test.
File
- 
              core/tests/ Drupal/ KernelTests/ Core/ Theme/ ThemesNotUsingClassyTemplatesTest.php, line 167 
Class
- ThemesNotUsingClassyTemplatesTest
- Tests that themes do not depend on Classy templates.
Namespace
Drupal\KernelTests\Core\ThemeCode
public function providerTestThemesTemplatesNotClassy() {
  // Each item provides the theme name and an array of templates to skip. The
  // templates in the to-skip array are ones that have not yet been decoupled
  // from Classy. When a template is properly decoupled from Classy, it can be
  // removed from to-skip. If this test passes with an empty to-skip array,
  // this is confirmation that the templates are fully decoupled form Classy.
  return [
    'umami' => [
      'theme-name' => 'umami',
      'to-skip' => [],
    ],
    'seven' => [
      'theme-name' => 'seven',
      'to-skip' => [],
    ],
    'claro' => [
      'theme-name' => 'claro',
      'to-skip' => [],
    ],
    'bartik' => [
      'theme-name' => 'bartik',
      'to-skip' => [],
    ],
  ];
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
