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.
The test environment in our setup at work is not called
test
butlocal_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 hardcodedtest
. This PR fixes that.I have also renamed the
fallbackToTestEnvironment
method to better reflect its purpose.