test: #3581444 Fix tests and require Drupal 11.3 and Embed 8.x-1.12

Description

Gets Entity Embed's tests running again on Drupal 11, and raises the minimum to Drupal 11.3 and Embed 8.x-1.12.

Closes #3581444

  • Tests use PHPUnit attributes instead of annotations (#[Group], #[RunTestsInSeparateProcesses], #[CoversClass], #[DataProvider]), which Drupal 12's test discovery requires.
  • entity_embed_test adds the article body field in hook_install() instead of config, reusing the body storage core's testing profile provides (text_with_summary on 11.3, text_long on 11.4).
  • Tests no longer expect the search_index and search_result view modes, which core 11.4 moved to the Search module.
  • testPreviewUsesDefaultThemeAndIsClientCacheable installs stable9 before making it the default theme.
  • core_version_requirement: ^11.3 || ^12, dropping Drupal 10.
  • drupal/embed: ^1.12, which adds Drupal 12 support and fixes the EmbedCKEditor5PluginBase namespace that broke every FunctionalJavascript test in setUp (embed#3517882 (closed), in 8.x-1.11).
  • CI no longer tests the previous major (Drupal 10) or installs CKEditor 4 for it, and now tests the next major (Drupal 12).
  • CI starts the previous minor, next minor, next major and max PHP jobs automatically instead of waiting for a manual click.

Testing instructions

  • In this MR's pipeline, check that the composer and phpunit jobs pass, that there's no composer (previous major) or phpunit (previous major) job, and that the phpunit (previous minor), phpunit (next minor), phpunit (next major) and phpunit (max PHP version) jobs start without a manual click.

Remaining tasks

  • 7 of 18 CKEditor5IntegrationTest tests (links, toolbar, editing embedded entities) still fail on core 11.4 with Cannot read properties of undefined (reading 'pencil'), the CKEditor 45 change. Verified locally that !62 (merged) (#3575503) fixes all 7 on top of this MR.
  • Follow-ups: plugin attributes in #3554612, and phpstan's show() and entity storage errors in #3639285.

AI disclosure

I used Claude Code (Opus 5.5) to debug the failing tests, write the requirement bump and CI changes, convert the PHPUnit annotations (with Rector) and draft this description. I found and wrote the test fixes, decided to drop Drupal 10 and require Embed 8.x-1.12, and reviewed the changes and the pipeline results.

🤖 Generated with Claude Code

Edited by Dave Reid

Merge request reports

Loading
Loading