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
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
Comment #3
vitaliyb98 commented- Split test cases into separate methods and refactored the code
- Introduced a Kernel test to verify widget summaries across different scenarios
Comment #5
vitaliyb98 commentedDouble-checked and merged refactored tests.