drupalextension
drupalextension copied to clipboard
provide step or add static cache clearing to cron
There are some cases where we assume that there is going to be a new page load, or at least a non-statically cached call.
For example:
- Create a user with Behat (Drupal API)
- Edit that user, but, through Mink
- Run cron, which operates on that user.
The "run cron" step in Drupalextension does not clear static caches, so the user is the old user.
There is already a static cache step, but it's not exposed as gherkin yet.
I fixed the issue by calling clearStaticCaches() before running cron.