function ClassyTest::setUp
Overrides KernelTestBase::setUp
File
-
core/
themes/ classy/ tests/ src/ Kernel/ ClassyTest.php, line 23
Class
- ClassyTest
- Tests the Classy theme.
Namespace
Drupal\Tests\classy\KernelCode
public function setUp() : void {
parent::setUp();
// Use the classy theme.
$this->container
->get('theme_installer')
->install([
'classy',
]);
$this->container
->get('config.factory')
->getEditable('system.theme')
->set('default', 'classy')
->save();
// Clear the theme registry.
$this->container
->set('theme.registry', NULL);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.