public function OverridesSectionStorageTest::testGetDefaultSectionStorage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php \Drupal\Tests\layout_builder\Kernel\OverridesSectionStorageTest::testGetDefaultSectionStorage()
- 9 core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php \Drupal\Tests\layout_builder\Kernel\OverridesSectionStorageTest::testGetDefaultSectionStorage()
@covers ::getDefaultSectionStorage
File
- core/
modules/ layout_builder/ tests/ src/ Kernel/ OverridesSectionStorageTest.php, line 212
Class
- OverridesSectionStorageTest
- @coversDefaultClass \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage
Namespace
Drupal\Tests\layout_builder\KernelCode
public function testGetDefaultSectionStorage() {
$entity = EntityTest::create();
$entity
->save();
$this->plugin
->setContext('entity', EntityContext::fromEntity($entity));
$this->plugin
->setContext('view_mode', new Context(ContextDefinition::create('string'), 'default'));
$this
->assertInstanceOf(DefaultsSectionStorageInterface::class, $this->plugin
->getDefaultSectionStorage());
}