function BlockContentDeriverTest::setUp

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

Overrides KernelTestBase::setUp

File

core/modules/block_content/tests/src/Kernel/BlockContentDeriverTest.php, line 54

Class

BlockContentDeriverTest
Tests block content plugin deriver.

Namespace

Drupal\Tests\block_content\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('user');
    $this->installEntitySchema('block_content');
    $this->blockContentStorage = \Drupal::entityTypeManager()->getStorage('block_content');
    $this->blockContentDerivative = new DerivativeBlockContent($this->blockContentStorage);
}

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