gorghoa / ScenarioStateBehatExtension

Provide a way to share scenario state through steps
MIT License
33 stars 7 forks source link

[Idea] Dispatch event before injection #34

Closed vincentchalamon closed 4 years ago

vincentchalamon commented 7 years ago

I have a Behat step called Given I log in as a user, which authenticate a user and store the user object in ScenarioState. Then, Behat step update current user. When I inject this current user in a final step, it's not up to date and I need to refresh it manually using Doctrine managers.

It could be interesting to add events in current bundle to allow to refresh data before injection.

WDYT @gorghoa ?

vincentchalamon commented 4 years ago

Closing as not maintained anymore.