function HelpBlockTest::setUp
Same name in this branch
- 11.x core/modules/help/tests/src/Functional/HelpBlockTest.php \Drupal\Tests\help\Functional\HelpBlockTest::setUp()
Same name and namespace in other branches
- 10 core/modules/help/tests/src/Functional/HelpBlockTest.php \Drupal\Tests\help\Functional\HelpBlockTest::setUp()
- 9 core/modules/help/tests/src/Functional/HelpBlockTest.php \Drupal\Tests\help\Functional\HelpBlockTest::setUp()
- 8.9.x core/modules/help/tests/src/Functional/HelpBlockTest.php \Drupal\Tests\help\Functional\HelpBlockTest::setUp()
- main core/modules/help/tests/src/Functional/HelpBlockTest.php \Drupal\Tests\help\Functional\HelpBlockTest::setUp()
- main core/modules/help/tests/src/Kernel/HelpBlockTest.php \Drupal\Tests\help\Kernel\HelpBlockTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ help/ tests/ src/ Kernel/ HelpBlockTest.php, line 45
Class
- HelpBlockTest
- Tests display of help block.
Namespace
Drupal\Tests\help\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installEntitySchema('block');
$this->container
->get('theme_installer')
->install([
'stark',
]);
$this->config('system.theme')
->set('default', 'stark')
->save();
$this->helpBlock = $this->placeBlock('help_block');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.