Add tests for remove_cache_setting_from_syndicate_blocks post-update hook

Created on 14 November 2025, about 18 hours ago

Problem/Motivation

In 🐛 The Sitemap blocks' settings have no config schema Needs work , we discovered that the cache, and its sub-key max_age configuration options in SitemapSyndicateBlock, and we wrote sitemap_post_update_remove_cache_setting_from_syndicate_blocks() to remove the cache key from block configuration.

But because 3545794 was blocking Drupal CMS, we decided to defer writing tests for that change to this ticket.

Proposed resolution

Write fixtures and tests for sitemap.post_update.php's sitemap_post_update_remove_cache_setting_from_syndicate_blocks().

Remaining tasks

  1. Write a merge request
  2. Review and feedback
  3. RTBC and feedback (likely skip-able if it's just tests)
  4. Commit
  5. Release

User interface changes

None.

API changes

None.

Data model changes

None.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada mparker17 UTC-4

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024