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()

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

avpaderno created an issue. See original summary.

avpaderno’s picture

Status: Active » Reviewed & tested by the community

  • avpaderno committed 51f51887 on 2.0.x
    Issue #3547305: ::assertEqual() has been deprecated in Drupal 9 and...
avpaderno’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.