Behat Api tests seem to be hitting the dev environment (dev cache folder is created, and it uses the dev database).
It creates the test database with no problems and adds the data (BeforeScenario method in FeatureContext).
My set up is as follows:
Have an app_test.php front controller.
default:
formatters:
pretty: true
autoload:
'': %paths.base%/app/features/bootstrap
suites:
app_suite:
type: symfony_bundle
bundle: AppBundle
contexts:
- AppBundle\Features\Context\FeatureContext:
parameters:
base_url: http://mysite.dev
mink_session: default
mink_javascript_session: selenium2
extensions:
Behat\Symfony2Extension: ~
Behat\MinkExtension:
sessions:
default:
symfony2: ~
This: http://www.forouzani.com/installing-behat-mink-and-selenium2-in-symfony2.html may have worked previously with behat 2, but I'm using behat 3 now so it doesn't seem to work as expected!
Thanks