You are here

protected function BlockStorageUnitTest::setUp in Drupal 10

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

File

core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php, line 33

Class

BlockStorageUnitTest
Tests the storage of blocks.

Namespace

Drupal\Tests\block\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this->controller = $this->container
    ->get('entity_type.manager')
    ->getStorage('block');
  $this->container
    ->get('theme_installer')
    ->install([
    'stark',
  ]);
}