Deprecated use of ConfigStorageTestTrait

Created on 26 February 2024, 4 months ago
Updated 27 February 2024, 4 months ago

Problem/Motivation

I've been setting up some PHPUnit tests and got this in some results:

PHP Fatal error:  Trait "Drupal\Tests\config_filter\Kernel\ConfigStorageTestTrait" not found in /opt/drupal/web/modules/contrib/config_ignore/tests/src/Kernel/IgnoreKernelTest.php on line 20

  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

Set up PHPUnit the usual way, including adjusting the file structure settings as necessary, and run PHPUnit against the file, e.g.:

phpunit web/modules/contrib/config_ignore/tests/src/Kernel/IgnoreKernelTest.php

🐛 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.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024