--
You received this message because you are subscribed to the Google Groups "Behat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to behat+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
export MINK_EXTENSION_PARAMS="base_url=my.dev.site/"
The tests failed. Is there more specific guidance in the documentation that describes how to make this work?
I had a working set of tests with this behat.yml:default:
extensions:
Behat\MinkExtension:
goutte:
guzzle_parameters:
ssl.certificate_authority: false
base_url: https://my.dev.site/
I tried commenting out the last line and hope that following environment variable definition would be equivalent:
export MINK_EXTENSION_PARAMS="base_url=my.dev.site/"
The tests failed. Is there more specific guidance in the documentation that describes how to make this work?
-- Christophe | Stof
export BEHAT_PARAMS='{"extensions" : {"Behat\\MinkExtension" : {"base_url" : "https://my.dev.site/"}}}'
Things to note:
The value now needs to be a JSON string. Not sure if that's documented anywhere.
The backslash in the MinkExtension class needs to be escaped. Use single quotes in the shell command.
The top-level in the configuration file, named "default" in my case, is implicit. It does not have to be in the JSON hierarchy.
Other than that, the hierarchy here matches that in the behat.yml file.
For more options, visit https://groups.google.com/d/optout.