Problem/Motivation

Webform has a unit test that causes a deprication notice after updating to Drupal 9.2.0

Steps to reproduce

Run webform unit tests after updating drupal core to 9.2.0, the following message will appear in the output.

Remaining self deprecation notices (1)

1x: Drupal\Tests\AssertHelperTrait is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no replacement. See https://www.drupal.org/node/3123638
1x in UnitTestSuite::suite from Drupal\Tests\TestSuites

Proposed resolution

Attached patch fixes the issue as per the deprecation notice here: https://www.drupal.org/node/3123638

CommentFileSizeAuthor
webform_unit_test_92_support.patch1.74 KBjesmaster

Comments

Jesmaster created an issue. See original summary.

jrockowitz’s picture

Version: 6.0.3 » 8.x-5.x-dev
Status: Active » Reviewed & tested by the community

  • Jesmaster authored be885c2 on 8.x-5.x
    Issue #3219151 by Jesmaster: AssertHelperTrait deprecated in unit test
    

  • Jesmaster authored be885c2 on 6.x
    Issue #3219151 by Jesmaster: AssertHelperTrait deprecated in unit test
    
jrockowitz’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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