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::testBrokenBlockPluginUpdatehardcoded a stale 11.3 block-settings version hash. The unmodified-block hash on 11.3 is0b5af0d270d99618, the valuetestInvalidBlockPluginUpdatealready asserts. The two tests now agree.HostEntityPropSourceMatcherTestrelied on thenodemodule shipping the default body field storage. Drupal 11.3 moved that storage into the deprecatednode_storage_body_fieldsubmodule. The test now installs the storage from whichever source ships it:nodeon 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