Kernel Tests: Deprecation Notices

Created on 1 April 2024, 3 months ago

Problem/Motivation

When I run kernel tests, I get these self-deprecation notices:

Remaining self deprecation notices (3)

  2x: Passing null to the $typedConfigManager parameter of ConfigFormBase::__construct() is deprecated in drupal:10.2.0 and must be an instance of \Drupal\Core\Config\TypedConfigManagerInterface in drupal:11.0.0. See https://www.drupal.org/node/3404140
    1x in AutoEntityLabelFormTest::testFormBuild from Drupal\Tests\auto_entitylabel\Kernel
    1x in AutoEntityLabelFormTest::testFormSubmit from Drupal\Tests\auto_entitylabel\Kernel

  1x: Using assert[Not]Equals() to compare markup between MarkupInterface objects and plain strings is deprecated in drupal:10.1.0 and will throw an error from drupal:11.0.0. Expected: '<em class="placeholder">Content type</em>: Administer automatic entity labels' - Actual '<em class="placeholder">Content type</em>: Administer automatic entity labels'. Use assert[Not]Same() and cast objects to string instead. See https://www.drupal.org/node/3334057
    1x in AutoEntityLabelPermissionControllerTest::testAutoEntityLabelPermissions from Drupal\Tests\auto_entitylabel\Kernel

These aren't urgent, but must be fixed before Drupal 11 and would be nice to have cleared in the next release before then.

Steps to reproduce

Run phpunit --testsuite=kernel --group=auto_entitylabel

Proposed resolution

Followed recommended strategies to fix each of the deprecations.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada ryanrobinson_wlu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024