Replace calls to ::expectWarning*() from Drupal\Tests\Core\Security\DoTrustedCallbackTraitTest

Created on 11 March 2024, 7 months ago
Updated 26 May 2024, 5 months ago

Problem/Motivation

PHPUnit 9 deprecated ::expectError*() and ::expectWarning*()methods. They're removed from PHPUnit 10.

Proposed resolution

  1. Deprecate passing TrustedCallbackInterface::TRIGGER_WARNING for $error_type in DoTrustedCallbackTrait::doTrustedCallback() in 10.3
  2. Remove the feature and the interface constant in D11
📌 Task
Status

Fixed

Version

10.3

Component
PHPUnit 

Last updated 1 day ago

Created by

🇮🇹Italy mondrake 🇮🇹

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