I'm setting up a test suite with Codeception. I need both my app and Codeception to connect to the same test database, but for my app to connect to the dev database when it's not being tested.
I'm looking for some way to tell my app that it's being tested so that it can then connect to the right database.
I'm assuming there's some way to set an environmental variable within my Codeception test that my app can then read, but I've Googled everything I can think of, but I just end up going in circles. I feel like I'm missing something obvious.