jeudi 28 mai 2015

Connecting to multiple databases with Codeception acceptance tests

I am trying to figure out how to connect to multiple databases using Codeception. I have even tried directly instantiating a new PDO instance but then the codept run command just ends prematurely with no error message.

I can connect fine to one database using the Db module to use functions such as $I->seeInDatabase() but am stuck trying to connect to two. Trying to reconfigure the Db module at runtime with $this->getModule('Db')->_reconfigure() also just stops the tests with no message.

Any ideas?

Aucun commentaire:

Enregistrer un commentaire