function BlockConfigSchemaTest::setUp

Same name in this branch
  1. 11.x core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php \Drupal\Tests\block\Kernel\BlockConfigSchemaTest::setUp()
Same name in other branches
  1. 9 core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php \Drupal\Tests\block\Kernel\BlockConfigSchemaTest::setUp()
  2. 8.9.x core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php \Drupal\Tests\block\Kernel\BlockConfigSchemaTest::setUp()
  3. 10 core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php \Drupal\Tests\block\Kernel\BlockConfigSchemaTest::setUp()
  4. 10 core/modules/book/tests/src/Kernel/Block/BlockConfigSchemaTest.php \Drupal\Tests\book\Kernel\Block\BlockConfigSchemaTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/book/tests/src/Kernel/Block/BlockConfigSchemaTest.php, line 40

Class

BlockConfigSchemaTest
Tests the block config schema.

Namespace

Drupal\Tests\book\Kernel\Block

Code

protected function setUp() : void {
    parent::setUp();
    $this->typedConfig = \Drupal::service('config.typed');
    $this->installEntitySchema('node');
    $this->installSchema('book', [
        'book',
    ]);
    $this->container
        ->get('theme_installer')
        ->install([
        'stark',
    ]);
}

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