function ClassyTest::setUp
Same name in other branches
- 9 core/themes/classy/tests/src/Kernel/ClassyTest.php \Drupal\Tests\classy\Kernel\ClassyTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ system/ tests/ src/ Kernel/ Render/ ClassyTest.php, line 22
Class
- ClassyTest
- Tests the Classy theme.
Namespace
Drupal\Tests\system\Kernel\RenderCode
public function setUp() {
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.