Problem/Motivation

\Drupal\Tests\system\Functional\Entity\EntityReferenceSelection\EntityReferenceSelectionAccessTest is a browser test for historical reasons, it comes from D7 which didn't have kernel tests.

Proposed resolution

Convert it to a kernel test, which also makes it faster to run.

Remaining tasks

Review.

User interface changes

Nope.

API changes

Nope.

Data model changes

Nope.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amateescu created an issue. See original summary.

amateescu’s picture

Status: Active » Needs review
FileSize
5.47 KB

There we go.

amateescu’s picture

@timmillwood was confused about so many users called "admin_user" and suggested to rename the one from testNodeHandler() to $content_admin, and I agree :)

timmillwood’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @amateescu, looks good!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 3: 2987084-3.patch, failed testing. View results

amateescu’s picture

Status: Needs work » Reviewed & tested by the community

  • catch committed a85b1ec on 8.7.x
    Issue #2987084 by amateescu: Convert EntityReferenceSelectionAccessTest...

  • catch committed 1765cea on 8.6.x
    Issue #2987084 by amateescu: Convert EntityReferenceSelectionAccessTest...
catch’s picture

Version: 8.7.x-dev » 8.6.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.7.x and cherry-picked to 8.6.x, thanks!

Status: Fixed » Closed (fixed)

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