D10 readiness: replace deprecated drupalGetHeader()

Created on 25 February 2024, 9 months ago
Updated 12 July 2024, 4 months 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.71.5 2024