fix(Tests): #3591701 Make tests pass again on Drupal 11.3: block config schema changed, `ComponentInputsEvolutionTest` needs to handle <=11.2 vs >11.2 differently

Makes the Canvas kernel test suite pass on Drupal core 11.3 while keeping 11.2 green.

Two 11.3-specific failures from the nightly pipeline (pipeline 855595):

  • ComponentInputsEvolutionTest::testBrokenBlockPluginUpdate hardcoded a stale 11.3 block-settings version hash. The unmodified-block hash on 11.3 is 0b5af0d270d99618, the value testInvalidBlockPluginUpdate already asserts. The two tests now agree.
  • HostEntityPropSourceMatcherTest relied on the node module shipping the default body field storage. Drupal 11.3 moved that storage into the deprecated node_storage_body_field submodule. The test now installs the storage from whichever source ships it: node on 11.2, the submodule on 11.3.

Testing

  • phpunit (11.3 *): [PHPUnit-Kernel, 1, ...] passes
  • phpunit (11.3 *): [PHPUnit-Kernel, 2, ...] passes
  • phpunit (11.2 *) kernel jobs stay green

AI Disclosure: Used Claude Code to diagnose the 11.3 pipeline failures and write the test fixes. See: https://www.drupal.org/docs/develop/issues/issue-procedures-and-etiquette/policy-on-the-use-of-ai-when-contributing-to-drupal

Closes #3591701 (closed)

Edited by Matt Glaman

Merge request reports

Loading