projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
diff --git
a/web/core/modules/layout_builder/tests/src/Kernel/LayoutBuilderFieldLayoutCompatibilityTest.php
b/web/core/modules/layout_builder/tests/src/Kernel/LayoutBuilderFieldLayoutCompatibilityTest.php
index 59a76615c1881c68dfb8355dc6b6ce5a982d17ec..12fd813f4fbf2db3a0e45f26cfffd9256052b492 100644
(file)
--- a/
web/core/modules/layout_builder/tests/src/Kernel/LayoutBuilderFieldLayoutCompatibilityTest.php
+++ b/
web/core/modules/layout_builder/tests/src/Kernel/LayoutBuilderFieldLayoutCompatibilityTest.php
@@
-2,6
+2,7
@@
namespace Drupal\Tests\layout_builder\Kernel;
namespace Drupal\Tests\layout_builder\Kernel;
+use Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage;
use Drupal\layout_builder\Section;
/**
use Drupal\layout_builder\Section;
/**
@@
-54,8
+55,9
@@
class LayoutBuilderFieldLayoutCompatibilityTest extends LayoutBuilderCompatibili
$this->assertFieldAttributes($this->entity, $expected_fields);
// Add a layout override.
$this->assertFieldAttributes($this->entity, $expected_fields);
// Add a layout override.
+ $this->enableOverrides();
/** @var \Drupal\layout_builder\SectionStorageInterface $field_list */
/** @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();
$field_list->appendSection(new Section('layout_onecol'));
$this->entity->save();