public function LayoutBuilderEntityViewDisplayTest::testInvalidConfiguration in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php \Drupal\Tests\layout_builder\Kernel\LayoutBuilderEntityViewDisplayTest::testInvalidConfiguration()
- 9 core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php \Drupal\Tests\layout_builder\Kernel\LayoutBuilderEntityViewDisplayTest::testInvalidConfiguration()
Tests that configuration schema enforces valid values.
File
- core/
modules/ layout_builder/ tests/ src/ Kernel/ LayoutBuilderEntityViewDisplayTest.php, line 38
Class
- LayoutBuilderEntityViewDisplayTest
- @coversDefaultClass \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay
Namespace
Drupal\Tests\layout_builder\KernelCode
public function testInvalidConfiguration() {
$this
->expectException(SchemaIncompleteException::class);
$this->sectionList
->getSection(0)
->getComponent('first-uuid')
->setConfiguration([
'id' => 'foo',
'bar' => 'baz',
]);
$this->sectionList
->save();
}