ComponentSource robustness: add `ComponentSourceTestBase::testSettings()`

Created on 11 April 2025, about 1 month ago

Overview

\Drupal\Tests\experience_builder\Kernel\Config\ComponentTest::testComponentCreation() was first created for SDC only. Then JS components were added to it.

This is partially superseded by ComponentSourceTestBase::testDiscovery(), but that tests only the auto-creation of the Component config entity, not the settings (default_settings for block components, prop_field_definitions for SDC and JS components) of the created Component config entity.

Proposed resolution

  1. Add
      /**
       * @depends testDiscovery
       */
      public function testSettings(array $component_ids): void;
    

    to ComponentSourceTestBase

  2. Remove ComponentTest::testComponentCreation()

User interface changes

None.

📌 Task
Status

Active

Version

0.0

Component

Component sources

Created by

🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024