Problem/Motivation

AssertLegacyTrait::assertNotIdentical() is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertNotSame() instead. See https://www.drupal.org/node/3129738

Proposed resolution

Replace usages.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3191986

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mondrake created an issue. See original summary.

mondrake’s picture

Issue summary: View changes
Status: Active » Needs review
daffie’s picture

Status: Needs review » Reviewed & tested by the community

All the code changes look good to me.
All instances of assertNotIdentical() have been replaced with assertNotSame().
In places where it is very clear what the expected result is, the expected result has become the first parameter.
There is a deprecation message test added.
For me it is RTBC.

mondrake’s picture

Assigned: mondrake » Unassigned

  • catch committed c2e91dc on 9.2.x
    Issue #3191986 by mondrake, daffie: Replace usages of deprecated...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed c2e91dc and pushed to 9.2.x. Thanks!

Didn't backport to 9.1.x since it's removing the deprecation suppression from the list. We could potentially backport it without that (and the test coverage) to keep tests in sync, but also this isn't a massive patch so shouldn't result in too many conflicts.

Status: Fixed » Closed (fixed)

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