Introduce unit test coverage for both ComponentSource plugins (Block + SDC)

Created on 21 January 2025, 3 months ago

Overview

Over at https://git.drupalcode.org/project/experience_builder/-/merge_requests/5..., I realized that \Drupal\Tests\experience_builder\Kernel\Plugin\Field\FieldType\ComponentTreeItemTest::testComponentResolving() is actually highly SDC-specific.

But it's only as of šŸ“Œ Implement saving block settings forms Active that this becomes more clear, because the logic that resolves values for SDC's props is finally being moved into \Drupal\experience_builder\Plugin\ExperienceBuilder\ComponentSource\SingleDirectoryComponent — that's not something we did when we originally introduced the concept of component source plugins back in šŸ“Œ Add support for Blocks as Components Active — of course, there was plenty of change happening at the time!

Proposed resolution

Introduce explicit unit test coverage for both:

  1. BlockComponent
  2. SingleDirectoryComponent — starting with ComponentTreeItemTest::testComponentResolving() getting moved to SingleDirectoryComponentTest::testGetExplicitInput().

User interface changes

None.

šŸ“Œ Task
Status

Active

Version

0.0

Component

Data model

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