function HtmxRendererTest::setUp
Overrides KernelTestBase::setUp
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Htmx/ HtmxRendererTest.php, line 46
Class
- HtmxRendererTest
- Verifies HtmxRenderer.
Namespace
Drupal\KernelTests\Core\HtmxCode
protected function setUp() : void {
parent::setUp();
$this->installConfig([
'system',
]);
$this->installEntitySchema('user');
$theme = $this->config('system.theme')
->get('default');
$this->container
->get('theme_installer')
->install([
$theme,
]);
$this->placeBlock('system_powered_by_block', [
'region' => 'header',
]);
$this->setCurrentUser($this->createUser([
'access content',
]));
$this->httpKernel = $this->container
->get('http_kernel');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.