function HelpBlockTest::setUp

Same name in this branch
  1. 11.x core/modules/help/tests/src/Functional/HelpBlockTest.php \Drupal\Tests\help\Functional\HelpBlockTest::setUp()
Same name and namespace in other branches
  1. 10 core/modules/help/tests/src/Functional/HelpBlockTest.php \Drupal\Tests\help\Functional\HelpBlockTest::setUp()
  2. 9 core/modules/help/tests/src/Functional/HelpBlockTest.php \Drupal\Tests\help\Functional\HelpBlockTest::setUp()
  3. 8.9.x core/modules/help/tests/src/Functional/HelpBlockTest.php \Drupal\Tests\help\Functional\HelpBlockTest::setUp()
  4. main core/modules/help/tests/src/Functional/HelpBlockTest.php \Drupal\Tests\help\Functional\HelpBlockTest::setUp()
  5. 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\Kernel

Code

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.