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!:
http://josh.ch/wordpress/?p=71

I hope somebody else will find this useful. :-) Please leave a message
if you try it... I'm happy to optimize it further.

On Tue, Sep 7, 2010 at 9:10 AM, psybear83 <psybea...@gmail.com> wrote:
> 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,
> Josh
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to