Issue #3637116 by tbcs: Drupal 12 compatibility.

  • add ^12 to core_version_requirement in ai_effort.info.yml
  • run the kernel test in separate processes, as core 12's PHPUnit setup requires (the bot's rector change, with its use statements sorted)
  • use a stub for the time service in AdaptersTest, since PHPUnit 12 flags mocks without expectations and core 12 fails on PHPUnit notices
  • turn on OPT_IN_TEST_NEXT_MAJOR, and let the next major composer job install AI and the providers through the lenient plugin until they declare Drupal 12

I used an LLM in the production of this code. Should be reviewed on Drupal 12 before tagging; Go ahead once the pipeline passes.

Merge request reports

Loading
Loading