refactor: #3639285 Convert the test modules' hooks to OOP hooks

Description

Follow-up to !78 (merged): converts the test modules' procedural hooks to OOP hooks. Drupal 11.5 deprecates code in .module files.

Issue: https://www.drupal.org/project/entity_embed/issues/3639285

  • entity_embed_test: new EntityEmbedTestHooks with the theme, entity_embed_display_plugins_alter, entity_embed_context_alter, entity_embed_alter, entity_access and entity_view_alter hooks; entity_embed_test.module deleted.
  • entity_embed_ckeditor_test: new EntityEmbedCkeditorTestHooks with editor_info_alter; entity_embed_ckeditor_test.module deleted.

AI disclosure

Claude Code (Claude Opus 5.5) converted the hooks and wrote this description. I asked for the conversion after spotting the remaining .module deprecations in !78 (merged)'s pipeline, reviewed the change, and ran the kernel, functional and FunctionalJavascript tests locally.

🤖 Generated with Claude Code

Merge request reports

Loading
Loading