Kernel Tests: Deprecation of EntityReferenceTestTrait

Created on 1 April 2024, 9 months ago
Updated 2 April 2024, 9 months ago

Problem/Motivation

When I run kernel tests, I get this self deprecation notice:

Remaining self deprecation notices (1)

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

Steps to reproduce

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

Proposed resolution

Change the trait as described in the referenced article.

πŸ› Bug report
Status

Closed: cannot reproduce

Version

3.2

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada ryanrobinson_wlu

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

  • Issue created by @ryanrobinson_wlu
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Thanks

  • Status changed to Closed: cannot reproduce 9 months ago
  • πŸ‡¨πŸ‡¦Canada ryanrobinson_wlu

    I'll close this. I'm still getting the error about EntityReferenceTestTrait, but I'm getting that for every single module I test, even though if I grep for that it only shows as being in a few of them (not including this one). So it's probably another module's problem that is showing up in this module's report even when I specify which group of tests to run.

Production build 0.71.5 2024