You are here

protected function OverridesSectionStorageTest::setUp in Drupal 10

Same name in this branch
  1. 10 core/modules/layout_builder/tests/src/Unit/OverridesSectionStorageTest.php \Drupal\Tests\layout_builder\Unit\OverridesSectionStorageTest::setUp()
  2. 10 core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php \Drupal\Tests\layout_builder\Kernel\OverridesSectionStorageTest::setUp()
Same name and namespace in other branches
  1. 8 core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php \Drupal\Tests\layout_builder\Kernel\OverridesSectionStorageTest::setUp()
  2. 9 core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php \Drupal\Tests\layout_builder\Kernel\OverridesSectionStorageTest::setUp()

File

core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php, line 50

Class

OverridesSectionStorageTest
@coversDefaultClass \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage

Namespace

Drupal\Tests\layout_builder\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->setUpCurrentUser();
  $this
    ->installEntitySchema('entity_test');
  $definition = $this->container
    ->get('plugin.manager.layout_builder.section_storage')
    ->getDefinition('overrides');
  $this->plugin = OverridesSectionStorage::create($this->container, [], 'overrides', $definition);
}