jhedstrom / DrupalDriver

A collection of drivers for controlling Drupal.
GNU General Public License v2.0
64 stars 95 forks source link

Update username in Behat data after creating it in Drupal. #231

Closed rsanzante closed 3 years ago

rsanzante commented 3 years ago

See https://github.com/jhedstrom/DrupalDriver/issues/230.

rsanzante commented 3 years ago

This is not complete because it only addresses the issue on D8 core. If solution si accepted it can be easily extended to D7.

pfrenssen commented 3 years ago

I think it is probably not needed to change this since it should be handled on the calling side. See my comment https://github.com/jhedstrom/DrupalDriver/issues/230#issuecomment-725379086 that proposes to look into how Behat Drupal Extension deals with possible altering of the user object using the @AfterUserCreate hook.

rsanzante commented 3 years ago

Thanks for your comment, I agree calling side os a good place to handle this.