Problem/Motivation

In our Behat tests the user may already be deleted, and a fatal error is thrown when the module assumes the user still exists.

Proposed resolution

Check for the user first.

Remaining tasks

Review

API changes

None

Data model changes

None

CommentFileSizeAuthor
#2 3418452-check-user-entity.patch685 bytesawolfey
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

awolfey created an issue. See original summary.

awolfey’s picture

Status: Active » Needs review
StatusFileSize
new685 bytes
yohky’s picture

Status: Needs review » Reviewed & tested by the community

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

  • malaynayak committed 292126bb on 1.x
    Issue #3418452: Check User exists entity before getting its ID.
    
malaynayak’s picture

Status: Reviewed & tested by the community » Fixed

Thanks awolfey. I have commited the patch to 1.x.

awolfey’s picture

Thank you malaynayak.

Status: Fixed » Closed (fixed)

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