function BookSettingsFormTest::setUp

Same name in other branches
  1. 11.x core/modules/book/tests/src/Kernel/BookSettingsFormTest.php \Drupal\Tests\book\Kernel\BookSettingsFormTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/book/tests/src/Kernel/BookSettingsFormTest.php, line 36

Class

BookSettingsFormTest
@covers \Drupal\book\Form\BookSettingsForm @group book @group legacy

Namespace

Drupal\Tests\book\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->installConfig([
        'book',
        'node',
    ]);
    $this->createContentType([
        'type' => 'chapter',
    ]);
    $this->createContentType([
        'type' => 'page',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.