function ThemesNotUsingClassyTemplatesTest::setUp

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\Theme

Code

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();
}

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