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.

Issue fork rdf-3415905

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BenStallings created an issue. See original summary.

shalini_jha made their first commit to this issue’s fork.

shalini_jha’s picture

Status: Active » Needs review

HI i have added the fixes and created a MR , please review.
Thanks

BenStallings’s picture

Status: Needs review » Reviewed & tested by the community

It looks good to me! Thanks, @shalini_jha!

smustgrave’s picture

Status: Reviewed & tested by the community » Needs work

has test failures

viren18febS’s picture

Status: Needs review » Needs work

The last submitted patch, 7: issue-3415905-EntityReferenceTestTrait-deprecated-fixes.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.