Skip to content
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

Accessing the Application #74

Open
ecornelisse opened this issue Mar 20, 2018 · 1 comment
Open

Accessing the Application #74

ecornelisse opened this issue Mar 20, 2018 · 1 comment

Comments

@ecornelisse
Copy link

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');
@alnutile
Copy link
Contributor

"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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants