James Shields explains why update-hook testing for Drupal modules often needs database fixtures rather than ordinary test setup. Using Smart Trim as an example, the post shows how maintainers can dump a pre-update database, load it through functional update tests, run Drupal’s update path, and assert that stored configuration now matches the newer schema. It also covers fixture maintenance across Drupal versions, including separate database dumps for current, previous, and future major-version test targets, making the summary practical for maintainers responsible for upgrade compatibility.
...more