function BookPendingRevisionTest::setUp

Same name in other branches
  1. 9 core/modules/book/tests/src/Kernel/BookPendingRevisionTest.php \Drupal\Tests\book\Kernel\BookPendingRevisionTest::setUp()
  2. 8.9.x core/modules/book/tests/src/Kernel/BookPendingRevisionTest.php \Drupal\Tests\book\Kernel\BookPendingRevisionTest::setUp()
  3. 10 core/modules/book/tests/src/Kernel/BookPendingRevisionTest.php \Drupal\Tests\book\Kernel\BookPendingRevisionTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/book/tests/src/Kernel/BookPendingRevisionTest.php, line 34

Class

BookPendingRevisionTest
Tests that the Book module handles pending revisions correctly.

Namespace

Drupal\Tests\book\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('user');
    $this->installEntitySchema('node');
    $this->installSchema('book', [
        'book',
    ]);
    $this->installSchema('node', [
        'node_access',
    ]);
    $this->installConfig([
        'node',
        'book',
        'field',
    ]);
}

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