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.
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 ?