-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application state not refreshed between scenarios #76
Comments
you are stating in the readme:
But i guess that's not a complete refresh of the laravel Application? |
i think i found the problem. The reboot is only being done if the Context if instanceoff KernelAwareContext. Since i use multiple context files that no longer works because the last context file is of a different type. Maybe i can create a pull request with support for multiple context files |
Got the same problem. To fix that, I have a context extending <?php
use Behat\MinkExtension\Context\MinkContext;
use Laracasts\Behat\Context\App;
use Laracasts\Behat\Context\KernelAwareContext;
class CustomContext extends MinkContext implements KernelAwareContext
{
use App;
....
} Put your context at the end of the list in the behat configuration file. |
The application instance is not refreshed and so singleton services are being reused during different scenarios. This can be a problem if the singelton has some for of state. How can i refresh the application completely on each scenario?
The text was updated successfully, but these errors were encountered: