function BigPipeInterfacePreviewThemeSuggestionsTest::setUp

Same name in other branches
  1. 10 core/modules/big_pipe/tests/src/Kernel/BigPipeInterfacePreviewThemeSuggestionsTest.php \Drupal\Tests\big_pipe\Kernel\BigPipeInterfacePreviewThemeSuggestionsTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/big_pipe/tests/src/Kernel/BigPipeInterfacePreviewThemeSuggestionsTest.php, line 46

Class

BigPipeInterfacePreviewThemeSuggestionsTest
Tests the big_pipe_theme_suggestions_big_pipe_interface_preview() function.

Namespace

Drupal\Tests\big_pipe\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->controller = $this->container
        ->get('entity_type.manager')
        ->getStorage('block');
    $this->blockViewBuilder = $this->container
        ->get('entity_type.manager')
        ->getViewBuilder('block');
    $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.