I managed to work out a solution for this, and I released it as a
library so everyone can use it. I've written in my blog about it.
- Why web tests using the development database are a bad thing:
http://josh.ch/wordpress/?p=8
- Finally: use fixtures with your CakePHP web tests!:
Hi all
I'd like my CakePHP app to connect to its test-DB when I run my web
tests (CakeWebTestCase). How is this possible? As far as I understand
CakePHP only connects to the test-DB when running the unit tests, is
this true? This wouldn't really make much sense to me...
Thanks for information,