function ClassyTest::setUp
Same name in other branches
- 8.9.x core/modules/system/tests/src/Kernel/Render/ClassyTest.php \Drupal\Tests\system\Kernel\Render\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.