I am working on a Magento 1.4.1 project, and I want to use PhpUnit to test my models.
I am able to run my PhpUnit test using the default connection, but I want to use a different database connection than the one I use to test the interface.
What I would like to know (if its possible):
Maybe there is another solution, but I found out that we can change the "etc_dir" when we lauch the application.
It looked like this.
... // Start Magento application Mage::app(); ...
... // Start Magento application Mage::app('default', 'store', '/path/to/test/etc'); ...
My app folder
My test folder
Hope this could help someone.