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

Fallback to configured environment when no server/env environment is found #123

Conversation

ubermuda
Copy link

The test environment in our setup at work is not called test but local_test, and we had a problem where the right dotenv file was not loaded from our bootstrap (.env was loaded instead of .env.local_test).

After a quick investigation, it appears that SymfonyExtension does not use the configured environment but rather fallbacks to hardcoded test. This PR fixes that.

I have also renamed the fallbackToTestEnvironment method to better reflect its purpose.

@ghost
Copy link

ghost commented Oct 18, 2021

What is the hold up here? This was approved months ago. We need this fix as well.

@pamil pamil merged commit c112c8f into FriendsOfBehat:master Oct 20, 2021
@pamil
Copy link
Member

pamil commented Oct 20, 2021

Thank you, Geoffrey! 🎉

@ubermuda
Copy link
Author

🎉

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

Successfully merging this pull request may close these issues.

2 participants