::assertEqual() has been deprecated in Drupal 9 and replaced by ::assertEquals()

Created on 17 September 2025, 5 days ago

Problem/Motivation

UserRestrictionsExpireTest::testUserRestrictionsRecordExists() calls ::assertEqual(), but that method has been deprecated in Drupal 9, and removed in Drupal 10. Running tests on Drupal 10 will cause an error. ()

The method to call is ::assertEquals(). (See Simpletest's legacy assertion methods are deprecated .)

Proposed resolution

Replace any call to ::assertEqual() with a call to ::assertEquals()

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇹Italy apaderno Brescia, 🇮🇹

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