Problem/Motivation

See issue title
tl;dr
Remove \Drupal\Tests\jsonapi\Kernel\JsonapiKernelTestBase::createEntityReferenceField and use \Drupal\Tests\field\Traits\EntityReferenceTestTrait::createEntityReferenceField instead

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3368845

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:

Comments

larowlan created an issue. See original summary.

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

elber’s picture

Assigned: Unassigned » elber
elber’s picture

Hi it sounds weird do you want to remove the JsonapiKernelTestBase? file or should I replace it in some parameter from a specific function

can you explain please?

elber’s picture

Assigned: elber » Unassigned
larowlan’s picture

Hi @elber

The MR is currently empty.

I'm expecting that the method will be deleted from that class, and the class will instead use the trait.

Thanks

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

fredysan’s picture

Status: Active » Needs review
smustgrave’s picture

Status: Needs review » Needs work

MR should be updated with 11.x please.

fredysan’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Thanks!

Tests appear green so removing didn't cause any issue I can see.

  • catch committed 52a8c0a0 on 11.x
    Issue #3368845 by fredysan, larowlan: Remove \Drupal\Tests\jsonapi\...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 11.x, thanks!

wim leers’s picture

Nice catch! 👏

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.