D10 readiness: replace deprecated drupalGetHeader()

Created on 25 February 2024, 4 months ago
Updated 28 June 2024, 4 days ago

Problem/Motivation

The commited D10 adjustments (I think from πŸ“Œ Automated Drupal 10 compatibility fixes RTBC ) did not include the replacement of drupalGetHeader() proposed in #3301518-3: Update module for D10 readiness. β†’ .

Steps to reproduce

Running upgrade_status on site_alert will produce:

web/modules/contrib/site_alert/tests/src/Functional/SiteAlertCacheTest.php
Call to deprecated method drupalGetHeader() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use $this->getSession()->getResponseHeader() instead.

Proposed resolution

Use $this->getSession()->getResponseHeader() instead.

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany gngn

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024