
Problem/Motivation
PHPUnit reports,
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
Steps to reproduce
run phpunit list-groups
Proposed resolution
update the tests to use the new class.
Comment | File | Size | Author |
---|---|---|---|
#3 | issues-3415901-EntityReferenceTestTrait-deprecated-fixes.patch | 746 bytes | viren18febs |
Issue fork default_content-3415901
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
viren18febs CreditAttribution: viren18febs at Concinnity Media Technologies for Concinnity Media Technologies commentedHi, I have fixed the issues and added a patch for this.
Thanks
Comment #5
benstallings CreditAttribution: benstallings at Share Good USA commentedThe patch looks good, but the MR is not mergeable.
Comment #7
ankitv18 CreditAttribution: ankitv18 as a volunteer and at Acquia commentedRebased the MR!40 with 2.0.x-dev ~~ now it is ready for review.
Comment #9
berdirIt makes more sense to do this as part of #3428127: Automated Drupal 11 compatibility fixes for default_content because it's needed for D11 compatibility and we can't test otherwise.
On the other hand, this breaks compatibility with version 10.1 and earlier, at least for running tests, so it's not something to do lightly.