Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 EntityReferenceRdfaTest.php to use the new class.
Comment | File | Size | Author |
---|---|---|---|
#7 | issue-3415905-EntityReferenceTestTrait-deprecated-fixes.patch | 729 bytes | viren18febS |
Issue fork rdf-3415905
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 #4
shalini_jha CreditAttribution: shalini_jha at QED42 for QED42 commentedHI i have added the fixes and created a MR , please review.
Thanks
Comment #5
BenStallings CreditAttribution: BenStallings at Share Good USA commentedIt looks good to me! Thanks, @shalini_jha!
Comment #6
smustgrave CreditAttribution: smustgrave at Mobomo commentedhas test failures
Comment #7
viren18febS CreditAttribution: viren18febS at Concinnity Media Technologies for Concinnity Media Technologies commented