protected function LayoutBuilderEnableUpdatePathTest::assertLayoutBuilderSettings in Drupal 8
Asserts the Layout Builder settings for a given display.
Parameters
mixed $expected: The expected value.
string $entity_type_id: The entity type ID.
string $bundle: The bundle.
string $view_mode: The view mode.
1 call to LayoutBuilderEnableUpdatePathTest::assertLayoutBuilderSettings()
- LayoutBuilderEnableUpdatePathTest::testRunUpdates in core/
modules/ layout_builder/ tests/ src/ Functional/ Update/ LayoutBuilderEnableUpdatePathTest.php - Tests the upgrade path for enabling Layout Builder.
File
- core/
modules/ layout_builder/ tests/ src/ Functional/ Update/ LayoutBuilderEnableUpdatePathTest.php, line 84
Class
- LayoutBuilderEnableUpdatePathTest
- Tests the upgrade path for enabling Layout Builder.
Namespace
Drupal\Tests\layout_builder\Functional\UpdateCode
protected function assertLayoutBuilderSettings($expected, $entity_type_id, $bundle, $view_mode) {
$this
->assertEquals($expected, \Drupal::config("core.entity_view_display.{$entity_type_id}.{$bundle}.{$view_mode}")
->get('third_party_settings.layout_builder'));
}