By larowlan on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.1.x
Introduced in version:
9.1.0
Issue links:
Description:
AssertLegacyTrait was used to convert earlier Simpletest tests to PHPUnit tests. The original methods carried $message arguments that were used to print information on the Simpletest Test Results UI - but are no longer part of the AssertLegacyTrait implementation. In the conversions, sometimes those arguments were left in the calls, even if they are unproductive. This makes it confusing for developers, since they can be led to believe those arguments are needed.
In order to prevent cruft, in Drupal 9 a deprecation error is thrown when a call to either of the ::assertRaw or ::assertNoRaw contains more arguments than the signature defines.
Note that In D10 this legacy trait will be removed.
Impacts:
Module developers