Problem/Motivation

Currently, LinkClassWidgetTest::testLinkClassWidget() covers multiple scenarios within a single method. It would be better to split it into smaller, focused test cases to improve readability and maintainability.

Proposed resolution

Create separate test methods for:
- Manual class set
- Force class
- Class selection

Issue fork link_class-3582384

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vitaliyb98 created an issue. See original summary.

vitaliyb98’s picture

Status: Active » Needs review

- Split test cases into separate methods and refactored the code
- Introduced a Kernel test to verify widget summaries across different scenarios

  • vitaliyb98 committed 2cdc1d37 on 2.0.x
    feat: #3582384 Split the existing test into separate test cases.
    
vitaliyb98’s picture

Status: Needs review » Fixed

Double-checked and merged refactored tests.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.