X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flayout_builder%2Ftests%2Fsrc%2FKernel%2FLayoutBuilderEntityViewDisplayTest.php;fp=web%2Fcore%2Fmodules%2Flayout_builder%2Ftests%2Fsrc%2FKernel%2FLayoutBuilderEntityViewDisplayTest.php;h=a554fb526f93582976755b47438e1c5714bdeb7a;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php b/web/core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php new file mode 100644 index 000000000..a554fb526 --- /dev/null +++ b/web/core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php @@ -0,0 +1,43 @@ + 'entity_test', + 'bundle' => 'entity_test', + 'mode' => 'default', + 'status' => TRUE, + 'third_party_settings' => [ + 'layout_builder' => [ + 'sections' => $section_data, + ], + ], + ]); + $display->save(); + return $display; + } + + /** + * Tests that configuration schema enforces valid values. + */ + public function testInvalidConfiguration() { + $this->setExpectedException(SchemaIncompleteException::class); + $this->sectionStorage->getSection(0)->getComponent('first-uuid')->setConfiguration(['id' => 'foo', 'bar' => 'baz']); + $this->sectionStorage->save(); + } + +}