I’m using Behat for the first time and starting a new project. I’m trying to use BDD on a login feature and everything was going fine until I had to check to the database from inside a test. I have a development database and a test database.
While the test runs (I’m using Mink to simulate user interaction) there is a row that is inserted into a Session table in the development database (which makes sense since it’s like it was me doing the test manually), but when I check for that row inside the step definition it tries to find it in the test database.
What I want is the application to use the test database when I’m running the behat tests, is there a way to do this?
P.S.: I’m using YiiBoilerplate.