You are here

protected function BlockConfigSchemaTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php \Drupal\Tests\block\Kernel\BlockConfigSchemaTest::setUp()
  2. 9 core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php \Drupal\Tests\block\Kernel\BlockConfigSchemaTest::setUp()

File

core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php, line 53

Class

BlockConfigSchemaTest
Tests the block config schema.

Namespace

Drupal\Tests\block\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this->typedConfig = \Drupal::service('config.typed');
  $this->blockManager = \Drupal::service('plugin.manager.block');
  $this
    ->installEntitySchema('block_content');
  $this
    ->installEntitySchema('taxonomy_term');
  $this
    ->installEntitySchema('node');
  $this
    ->installSchema('book', [
    'book',
  ]);
}