test: #3638655 Fix the test suite for Drupal 11.4 (Manage display moved to /display/default)

Issue: https://www.drupal.org/i/3638655

Tests only, no module code changes.

  • Drupal 11.4 turned .../display into a view mode overview, so the tests now open .../display/default wherever they meant the default Manage display form (15 files).
  • New DsTestTrait::dsSetViewModeStatus() enables or disables a view mode through the entity API (a newly enabled one starts as a copy of the default display, as Field UI does). LayoutClassesTest and EntitiesTest use it instead of posting display_modes_custom.
  • Works on older cores too.

Verified locally on Drupal 11.4.12 / PHP 8.3 with ddev-drupal-contrib: all Functional and Unit tests pass (29 tests, 808 assertions) and FunctionalJavascript JavascriptTest passes. phpcs (Drupal, DrupalPractice) reports nothing new on the changed files.

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release

🤖 Generated with Claude Code

Merge request reports

Loading
Loading