Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / layout_builder / tests / src / Kernel / LayoutBuilderFieldLayoutCompatibilityTest.php
index 57dacb5b18ce030d343e93d1fa58fc289616c8ba..12fd813f4fbf2db3a0e45f26cfffd9256052b492 100644 (file)
@@ -2,6 +2,7 @@
 
 namespace Drupal\Tests\layout_builder\Kernel;
 
+use Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage;
 use Drupal\layout_builder\Section;
 
 /**
@@ -56,7 +57,7 @@ class LayoutBuilderFieldLayoutCompatibilityTest extends LayoutBuilderCompatibili
     // Add a layout override.
     $this->enableOverrides();
     /** @var \Drupal\layout_builder\SectionStorageInterface $field_list */
-    $field_list = $this->entity->get('layout_builder__layout');
+    $field_list = $this->entity->get(OverridesSectionStorage::FIELD_NAME);
     $field_list->appendSection(new Section('layout_onecol'));
     $this->entity->save();