Kernel Tests: Deprecations

Created on 1 April 2024, about 1 year ago

Problem/Motivation

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

Remaining self deprecation notices (2)

1x: The Drupal\Tests\field\Traits\EntityReferenceTestTrait is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Instead, use \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait. See https://www.drupal.org/node/3401941 β†’
1x in KernelTestSuite::suite from Drupal\Tests\TestSuites

1x: 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 GoogleAnalyticsAdminSettingsFormTest::testGoogleAnalyticsAdminSettingsForm from Drupal\Tests\google_analytics\Kernel\Form

Steps to reproduce

Run phpunit --testsuite="kernel" --group="google_analytics"

Proposed resolution

Change as described in the referenced articles.

πŸ› Bug report
Status

Active

Version

4.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.71.5 2024