Behat-Laravel-Extension icon indicating copy to clipboard operation
Behat-Laravel-Extension copied to clipboard

Accessing the Application

Open ecornelisse opened this issue 6 years ago • 1 comments

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');

ecornelisse avatar Mar 20 '18 16:03 ecornelisse

"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

alnutile avatar Mar 20 '18 16:03 alnutile