0

I have a Behat test where I have a Given user step, and I want to alter some fields (token replacements). Which Behat hook should I use? I know that for Given content, the Behat hook would be @beforeNodeCreate.

Which hook is for users?

1 Answer 1

3

Somewhat predictably, which I'm pretty sure is deliberate, it's @beforeUserCreate.

The Drupal Extension Hooks section of the docs has a bit of background in case you need it.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.