Behat-Laravel-Extension
Behat-Laravel-Extension copied to clipboard
Accessing the Application
Hoe can i access the laravel Application
from inside a context? Also my sessions+cookies are not cleared between tests while i have this in my @beforeScenario
$this->getSession()->stop();
//Clear cache and sessions for before each test
exec('git clean -fxd ' . storage_path('framework/cache'));
exec('git clean -fxd ' . storage_path('framework/sessions'));
exec('redis-cli flushall');
"between tests" to help with this I just hit logout after the test using the hooks behat has
otherwise not sure I have not tried it before this way