function EntityViewAlterTest::setUp

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

Overrides KernelTestBase::setUp

File

core/modules/layout_builder/tests/src/Kernel/EntityViewAlterTest.php, line 39

Class

EntityViewAlterTest
@covers \Drupal\layout_builder\Hook\LayoutBuilderHooks::entityViewAlter

Namespace

Drupal\Tests\layout_builder\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    EntityTestHelper::createBundle('bundle_with_extra_fields');
    $this->installEntitySchema('entity_test');
    $this->installConfig([
        'layout_builder_defaults_test',
    ]);
}

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