Thanks for your reply.
On 8/16/06, teemow <[EMAIL PROTECTED]> wrote:
I had a look at this before but didn't want to get into it yet until I have do my first release. Then I might use it for migrations. I never thought of it for testing though.
hmmm...
I've been having some discussions about this topic on some other forums and I think it'd be more suitable to mock the Model from the controller, but when testing the Models themselves I should test against a real database...... I think.
I've started using exec() to read in the dumpfile and using "mysql -u[username] -p[password] [database_name] < [filename.sql]"
What do you think of this?
Cheers,
Sonic
there is a script for database migrations:
http://wiki.cakephp.org/tutorials:cake_migrations
I had a look at this before but didn't want to get into it yet until I have do my first release. Then I might use it for migrations. I never thought of it for testing though.
............ it would be better to use
a mock object instead.
hmmm...
I've been having some discussions about this topic on some other forums and I think it'd be more suitable to mock the Model from the controller, but when testing the Models themselves I should test against a real database...... I think.
I've started using exec() to read in the dumpfile and using "mysql -u[username] -p[password] [database_name] < [filename.sql]"
What do you think of this?
Cheers,
Sonic
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---
- Re: MySQL Dump and Restore with Cake Sonic Baker
- Re: MySQL Dump and Restore with Cake Timo Derstappen
- Re: MySQL Dump and Restore with Cake Sonic Baker
