Pull merge.
[yaffs-website] / web / core / modules / layout_builder / tests / src / Kernel / LayoutSectionItemListTest.php
index 5bd354675cb843e7293054ad25134c53ca5325a3..4231530fd7acd6f7afdc90c87a3ac2b5103806b6 100644 (file)
@@ -4,6 +4,7 @@ namespace Drupal\Tests\layout_builder\Kernel;
 
 use Drupal\entity_test\Entity\EntityTestBaseFieldDisplay;
 use Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay;
+use Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage;
 
 /**
  * Tests the field type for Layout Sections.
@@ -42,10 +43,10 @@ class LayoutSectionItemListTest extends SectionStorageTestBase {
     }, $section_data);
     $entity = EntityTestBaseFieldDisplay::create([
       'name' => 'The test entity',
-      'layout_builder__layout' => $section_data,
+      OverridesSectionStorage::FIELD_NAME => $section_data,
     ]);
     $entity->save();
-    return $entity->get('layout_builder__layout');
+    return $entity->get(OverridesSectionStorage::FIELD_NAME);
   }
 
 }