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
/
Functional
/
LayoutSectionTest.php
diff --git
a/web/core/modules/layout_builder/tests/src/Functional/LayoutSectionTest.php
b/web/core/modules/layout_builder/tests/src/Functional/LayoutSectionTest.php
index e4af3290c468475cbfda28acfe6490fe5041c08e..e29609b30e712a11fc7ad7b37f626a3089d2c159 100644
(file)
--- a/
web/core/modules/layout_builder/tests/src/Functional/LayoutSectionTest.php
+++ b/
web/core/modules/layout_builder/tests/src/Functional/LayoutSectionTest.php
@@
-4,6
+4,7
@@
namespace Drupal\Tests\layout_builder\Functional;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay;
+use Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage;
use Drupal\layout_builder\Section;
use Drupal\layout_builder\SectionComponent;
use Drupal\Tests\BrowserTestBase;
use Drupal\layout_builder\Section;
use Drupal\layout_builder\SectionComponent;
use Drupal\Tests\BrowserTestBase;
@@
-20,13
+21,6
@@
class LayoutSectionTest extends BrowserTestBase {
*/
public static $modules = ['field_ui', 'layout_builder', 'node', 'block_test'];
*/
public static $modules = ['field_ui', 'layout_builder', 'node', 'block_test'];
- /**
- * The name of the layout section field.
- *
- * @var string
- */
- protected $fieldName = 'layout_builder__layout';
-
/**
* {@inheritdoc}
*/
/**
* {@inheritdoc}
*/
@@
-226,7
+220,7
@@
class LayoutSectionTest extends BrowserTestBase {
]);
$entity->addTranslation('es', [
'title' => 'Translated node title',
]);
$entity->addTranslation('es', [
'title' => 'Translated node title',
-
$this->fieldName
=> [
+
OverridesSectionStorage::FIELD_NAME
=> [
[
'section' => new Section('layout_twocol', [], [
'foo' => new SectionComponent('foo', 'first', [
[
'section' => new Section('layout_twocol', [], [
'foo' => new SectionComponent('foo', 'first', [
@@
-373,7
+367,7
@@
class LayoutSectionTest extends BrowserTestBase {
'value' => 'The node body',
],
],
'value' => 'The node body',
],
],
-
$this->fieldName
=> $section_values,
+
OverridesSectionStorage::FIELD_NAME
=> $section_values,
]);
}
]);
}