protected function ThemesNotUsingClassyTemplatesTest::setUp in Drupal 8
Overrides KernelTestBase::setUp
File
- core/tests/ Drupal/ KernelTests/ Core/ Theme/ ThemesNotUsingClassyTemplatesTest.php, line 77 
Class
- ThemesNotUsingClassyTemplatesTest
- Tests that themes do not depend on Classy templates.
Namespace
Drupal\KernelTests\Core\ThemeCode
protected function setUp() {
  parent::setUp();
  $this->themeHandler = $this->container
    ->get('theme_handler');
  $this->container
    ->get('theme_installer')
    ->install([
    'umami',
    'bartik',
    'seven',
    'claro',
  ]);
  // Enable all modules so every template is present in the theme registry.
  // This makes it possible to check the source of every template and
  // determine if they come from Classy.
  $this
    ->installAllModules();
}