Loading
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_testadds the article body field inhook_install()instead of config, reusing the body storage core's testing profile provides (text_with_summaryon 11.3,text_longon 11.4).- Tests no longer expect the
search_indexandsearch_resultview modes, which core 11.4 moved to the Search module. testPreviewUsesDefaultThemeAndIsClientCacheableinstallsstable9before 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 theEmbedCKEditor5PluginBasenamespace 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.
Links
- Embed 8.x-1.12
- Embed's Drupal 12 support: embed!33 (merged) (embed!33 (merged))
Testing instructions
- In this MR's pipeline, check that the
composerandphpunitjobs pass, that there's nocomposer (previous major)orphpunit (previous major)job, and that thephpunit (previous minor),phpunit (next minor),phpunit (next major)andphpunit (max PHP version)jobs start without a manual click.
Remaining tasks
- 7 of 18
CKEditor5IntegrationTesttests (links, toolbar, editing embedded entities) still fail on core 11.4 withCannot 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.
Edited by Dave Reid