protected function OverridesSectionStorageTest::setUp in Drupal 8
Same name in this branch
- 8 core/modules/layout_builder/tests/src/Unit/OverridesSectionStorageTest.php \Drupal\Tests\layout_builder\Unit\OverridesSectionStorageTest::setUp()
- 8 core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php \Drupal\Tests\layout_builder\Kernel\OverridesSectionStorageTest::setUp()
Same name and namespace in other branches
- 9 core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php \Drupal\Tests\layout_builder\Kernel\OverridesSectionStorageTest::setUp()
Overrides KernelTestBase::setUp
File
- core/
modules/ layout_builder/ tests/ src/ Kernel/ OverridesSectionStorageTest.php, line 51
Class
- OverridesSectionStorageTest
- @coversDefaultClass \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage
Namespace
Drupal\Tests\layout_builder\KernelCode
protected function setUp() {
parent::setUp();
$this
->setUpCurrentUser();
$this
->installSchema('system', [
'key_value_expire',
]);
$this
->installEntitySchema('entity_test');
$definition = $this->container
->get('plugin.manager.layout_builder.section_storage')
->getDefinition('overrides');
$this->plugin = OverridesSectionStorage::create($this->container, [], 'overrides', $definition);
}